Esempio n. 1
0
 /// <summary>
 /// Creates an empty FolderUpdateRequest instance
 /// </summary>
 /// <param name="syncKey">The syncKey of this request</param>
 /// <param name="serverId">Specified the updated folder's server id</param>
 /// <param name="displayName">Specified new display name of the folder</param>
 /// <param name="parentId">Specified new parentId of the created folder</param>
 /// <returns>A FolderUpdateRequest instance</returns>
 public static FolderUpdateRequest CreateFolderUpdateRequest(string syncKey, string serverId, string displayName, string parentId)
 {
     FolderUpdateRequest request = new FolderUpdateRequest();
     Request.FolderUpdate requestData = new Request.FolderUpdate
     {
         DisplayName = displayName,
         SyncKey = syncKey,
         ParentId = parentId,
         ServerId = serverId
     };
     request.RequestData = requestData;
     return request;
 }
Esempio n. 2
0
        /// <summary>
        /// Creates an empty FolderUpdateRequest instance
        /// </summary>
        /// <returns>A FolderUpdateRequest instance</returns>
        public static FolderUpdateRequest CreateFolderUpdateRequest()
        {
            FolderUpdateRequest request = new FolderUpdateRequest();
            Request.FolderUpdate requestData = new Request.FolderUpdate();

            request.RequestData = requestData;
            return request;
        }