コード例 #1
0
 /// <summary>
 /// Creates a FolderCreateRequest instance using the specified information
 /// </summary>
 /// <param name="syncKey">The syncKey of this request</param>
 /// <param name="type">The type of created folder</param>
 /// <param name="displayName">The display name of the folder</param>
 /// <param name="parentId">The parentId of the created folder</param>
 /// <returns>A FolderCreateRequest instance</returns>
 public static FolderCreateRequest CreateFolderCreateRequest(string syncKey, byte type, string displayName, string parentId)
 {
     FolderCreateRequest request = new FolderCreateRequest();
     Request.FolderCreate requestData = new Request.FolderCreate
     {
         DisplayName = displayName,
         SyncKey = syncKey,
         ParentId = parentId,
         Type = type
     };
     request.RequestData = requestData;
     return request;
 }
コード例 #2
0
 /// <summary>
 ///  Creates an empty FolderCreateRequest instance
 /// </summary>
 /// <returns>A FolderCreateRequest instance</returns>
 public static FolderCreateRequest CreateFolderCreateRequest()
 {
     FolderCreateRequest request = new FolderCreateRequest();
     Request.FolderCreate requestData = new Request.FolderCreate();
     request.RequestData = requestData;
     return request;
 }