示例#1
0
        public static void Create(string name, string mimeType, string extension, Action <ApiContainer> successCallback, Action <ApiContainer> errorCallback)
        {
            ApiFile apiFile = new ApiFile();

            apiFile.name      = name;
            apiFile.mimeType  = mimeType;
            apiFile.extension = extension;
            ApiFile apiFile2 = apiFile;

            apiFile2.Save(successCallback, errorCallback);
        }
示例#2
0
 public ApiFile(ApiFile file)
     : this()
 {
     if (file != null)
     {
         base.id   = file.id;
         name      = file.name;
         ownerId   = file.ownerId;
         mimeType  = file.mimeType;
         extension = file.extension;
         versions  = file.versions.Select(delegate(Version v)
         {
             Version version = new Version();
             version.Init(v);
             return(version);
         }).ToList();
         IsInitialized = file.IsInitialized;
     }
 }