Пример #1
0
 private static File CreateFileToUpload(GoogleDriveFile googleDriveFile)
 {
     return(new File
     {
         Title = googleDriveFile.Name,
         Parents = new List <ParentReference> {
             new ParentReference {
                 Kind = "drive#fileLink", Id = googleDriveFile.GoogleDriveFolderId
             }
         },
         Permissions = new List <Permission> {
             new Permission {
                 Role = "reader", Type = "anyone"
             }
         }
     });
 }
 private static File CreateFileToUpload(GoogleDriveFile googleDriveFile)
 {
     return new File
     {
         Title = googleDriveFile.Name,
         Parents = new List<ParentReference> { new ParentReference { Kind = "drive#fileLink", Id = googleDriveFile.GoogleDriveFolderId } },
         Permissions = new List<Permission> { new Permission { Role = "reader", Type = "anyone" } }
     };
 }