@@ -45,11 +45,10 @@ using namespace chip;
45
45
46
46
ContentLauncherManager ContentLauncherManager::sInstance ;
47
47
48
- ContentLaunchResponse ContentLauncherManager::HandleLaunchContent (chip::EndpointId endpointId,
49
- const std::list<ContentLaunchParamater> & parameterList,
50
- bool autoplay, const chip::CharSpan & data)
48
+ LaunchResponse ContentLauncherManager::HandleLaunchContent (chip::EndpointId endpointId, const std::list<Parameter> & parameterList,
49
+ bool autoplay, const chip::CharSpan & data)
51
50
{
52
- ContentLaunchResponse response;
51
+ LaunchResponse response;
53
52
CHIP_ERROR err = CHIP_NO_ERROR;
54
53
JNIEnv * env = JniReferences::GetInstance ().GetEnvForCurrentThread ();
55
54
@@ -86,7 +85,7 @@ ContentLaunchResponse ContentLauncherManager::HandleLaunchContent(chip::Endpoint
86
85
jstring jdataStr = (jstring) env->GetObjectField (resp, dataFid);
87
86
JniUtfString dataStr (env, jdataStr);
88
87
89
- response.status = static_cast <chip::app::Clusters::ContentLauncher::ContentLaunchStatus >(status);
88
+ response.status = static_cast <chip::app::Clusters::ContentLauncher::StatusEnum >(status);
90
89
response.data = dataStr.charSpan ();
91
90
}
92
91
@@ -100,11 +99,10 @@ ContentLaunchResponse ContentLauncherManager::HandleLaunchContent(chip::Endpoint
100
99
return response;
101
100
}
102
101
103
- ContentLaunchResponse
104
- ContentLauncherManager::HandleLaunchUrl (const chip::CharSpan & contentUrl, const chip::CharSpan & displayString,
105
- const std::list<ContentLaunchBrandingInformation> & brandingInformation)
102
+ LaunchResponse ContentLauncherManager::HandleLaunchUrl (const chip::CharSpan & contentUrl, const chip::CharSpan & displayString,
103
+ const std::list<BrandingInformation> & brandingInformation)
106
104
{
107
- ContentLaunchResponse response;
105
+ LaunchResponse response;
108
106
CHIP_ERROR err = CHIP_NO_ERROR;
109
107
JNIEnv * env = JniReferences::GetInstance ().GetEnvForCurrentThread ();
110
108
@@ -142,7 +140,7 @@ ContentLauncherManager::HandleLaunchUrl(const chip::CharSpan & contentUrl, const
142
140
jstring jdataStr = (jstring) env->GetObjectField (resp, dataFid);
143
141
JniUtfString dataStr (env, jdataStr);
144
142
145
- response.status = static_cast <chip::app::Clusters::ContentLauncher::ContentLaunchStatus >(status);
143
+ response.status = static_cast <chip::app::Clusters::ContentLauncher::StatusEnum >(status);
146
144
response.data = dataStr.charSpan ();
147
145
}
148
146
@@ -260,7 +258,7 @@ void ContentLauncherManager::InitializeWithObjects(jobject managerObject)
260
258
261
259
mLaunchContentMethod = env->GetMethodID (
262
260
ContentLauncherClass, " launchContent" ,
263
- " ([Lcom/tcl/chip/tvapp/ContentLaunchSearchParameter;ZLjava/lang/String;)Lcom/tcl/chip/tvapp/ContentLaunchResponse ;" );
261
+ " ([Lcom/tcl/chip/tvapp/ContentLaunchSearchParameter;ZLjava/lang/String;)Lcom/tcl/chip/tvapp/LaunchResponse ;" );
264
262
if (mLaunchContentMethod == nullptr )
265
263
{
266
264
ChipLogError (Zcl, " Failed to access MediaInputManager 'launchContent' method" );
@@ -269,7 +267,7 @@ void ContentLauncherManager::InitializeWithObjects(jobject managerObject)
269
267
270
268
mLaunchUrlMethod = env->GetMethodID (ContentLauncherClass, " launchUrl" ,
271
269
" (Ljava/lang/String;Ljava/lang/String;Lcom/tcl/chip/tvapp/"
272
- " ContentLaunchBrandingInformation;)Lcom/tcl/chip/tvapp/ContentLaunchResponse ;" );
270
+ " ContentLaunchBrandingInformation;)Lcom/tcl/chip/tvapp/LaunchResponse ;" );
273
271
if (mLaunchUrlMethod == nullptr )
274
272
{
275
273
ChipLogError (AppServer, " Failed to access 'launchUrl' method" );
0 commit comments