IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

ResourceList Event

Fires once for each resource returned when listing resources or changes.

Syntax

ANSI (Cross Platform)
virtual int FireResourceList(OneDriveResourceListEventParams *e);
typedef struct {
const char *Id;
const char *Name;
const char *Path;
const char *Description;
int ResourceType;
const char *CreatedTime;
const char *ModifiedTime;
int64 Size;
const char *ETag;
int Deleted; int reserved; } OneDriveResourceListEventParams; Unicode (Windows) virtual INT FireResourceList(OneDriveResourceListEventParams *e);
typedef struct {
LPCWSTR Id;
LPCWSTR Name;
LPCWSTR Path;
LPCWSTR Description;
INT ResourceType;
LPCWSTR CreatedTime;
LPCWSTR ModifiedTime;
LONG64 Size;
LPCWSTR ETag;
BOOL Deleted; INT reserved; } OneDriveResourceListEventParams;
- (void)onResourceList:(NSString*)id :(NSString*)name :(NSString*)path :(NSString*)description :(int)resourceType :(NSString*)createdTime :(NSString*)modifiedTime :(long long)size :(NSString*)ETag :(BOOL)deleted;
#define EID_ONEDRIVE_RESOURCELIST 8

virtual INT IPWORKSCLOUD_CALL FireResourceList(LPSTR &lpszId, LPSTR &lpszName, LPSTR &lpszPath, LPSTR &lpszDescription, INT &iResourceType, LPSTR &lpszCreatedTime, LPSTR &lpszModifiedTime, LONG64 &lSize, LPSTR &lpszETag, BOOL &bDeleted);

Remarks

This event fires once for each resource returned when ListResources, GetResourceInfo, Search, or ListChanges is called.

Id is the Id of the resource.

Name is the name of the resource.

Path is the path to the resource on the server. This parameter will always be empty for ListChanges.

Description holds the description of the resource. This parameter is only applicable for OneDrive Personal.

ResourceType reflects the resource's type. Possible values are:

0 (odrtFile) A file.
1 (odrtFolder) A folder.

CreatedTime and ModifiedTime reflect the resource's creation and last modified timestamps. Timestamps are formatted according to ISO 8601 and are always in UTC time.

Size is the size of the resource (for folders, their contents' total size), in bytes. This parameter will always be -1 for ListChanges.

ETag is the ETag of the resource.

Deleted indicates whether the resource has been deleted. This parameter is only applicable for ListChanges, it will always be false otherwise.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]