Skip to content

Commit c517137

Browse files
committed
RDKEMW-5405: [AI2.0][PacMan] fileLocator in onAppDownloadStatus Event Contain Extra Escape Characters
1 parent 182b857 commit c517137

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

apis/PackageManager/IAppPackageManager.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,31 @@ namespace Exchange {
4848
DISK_PERSISTENCE_FAILURE
4949
};
5050

51-
//struct PackageInfo {
52-
// string downloadId;
53-
// string fileLocator;
54-
// Reason reason;
55-
//};
51+
struct PackageInfo {
52+
string downloadId; /*@brief Download ID*/
53+
string fileLocator; /*@brief File Locator*/
54+
Reason reason; /*@brief Reason for the download status*/
55+
};
5656

5757
//typedef std::vector<PackageInfo> PackageInfoList;
58-
//using IPackageIterator = RPC::IIteratorType<PackageInfo, ID_PACKAGE_INFO_ITERATOR>;
58+
using IPackageInfoIterator = RPC::IIteratorType<PackageInfo, ID_PACKAGE_INFO_ITERATOR>;
5959

60-
/* @event */
6160
struct EXTERNAL INotification : virtual public Core::IUnknown {
6261
enum { ID = ID_PACKAGE_DOWNLOADER_NOTIFICATION };
6362
~INotification() override = default;
6463

6564
// @brief Signal changes on the status
6665
// @text onAppDownloadStatus
67-
virtual void OnAppDownloadStatus(const string& jsonresponse) {
68-
// Thunder does not support neither standard collection nor RPC::IIteratorType in notification
66+
virtual void OnAppDownloadStatus(IPackageInfoIterator* const packageInfo) {
6967
}
7068
};
7169

7270
~IPackageDownloader() override = default;
7371

7472
// Register for any changes
73+
// @json:omit
7574
virtual Core::hresult Register(IPackageDownloader::INotification *sink) = 0;
75+
// @json:omit
7676
virtual Core::hresult Unregister(IPackageDownloader::INotification *sink) = 0;
7777

7878
// @json:omit

0 commit comments

Comments
 (0)