Ejemplo n.º 1
0
 public Album CreateAlbum(EditAlbumParameters parameters = null)
 {
     try
     {
         return CreateAlbumAsync(parameters).RunSynchronouslyWithCurrentCulture();
     }
     catch (AggregateException ex)
     {
         ExceptionDispatchInfo.Capture(ex.InnerException).Throw();
         return null;
     }
 }
Ejemplo n.º 2
0
        public async Task <Album> AlbumOlustur(AlbumOlusturModel model)
        {
            VimeoDotNet.Parameters.EditAlbumParameters parametreler = new VimeoDotNet.Parameters.EditAlbumParameters();
            parametreler.Name        = model.Name;
            parametreler.Description = model.Description;
            parametreler.Privacy     = VimeoDotNet.Parameters.EditAlbumPrivacyOption.Anybody;



            VimeoDotNet.VimeoClient client1 = new VimeoDotNet.VimeoClient(TokenKey.Token);



            var result = await client1.CreateAlbumAsync(VimeoDotNet.Models.UserId.Me, parametreler);

            return(result);
        }
Ejemplo n.º 3
0
        public async Task <Album> AlbumDuzenle(VimeoDotNet.Models.Album model, Int64 albumId)
        {
            VimeoDotNet.Parameters.EditAlbumParameters parametreler = new VimeoDotNet.Parameters.EditAlbumParameters();
            parametreler.Name        = model.Name;
            parametreler.Description = model.Description;
            parametreler.Privacy     = VimeoDotNet.Parameters.EditAlbumPrivacyOption.Anybody;



            VimeoDotNet.VimeoClient client1 = new VimeoDotNet.VimeoClient(TokenKey.Token);

            try
            {
                var result = await client1.UpdateAlbumAsync(VimeoDotNet.Models.UserId.Me, albumId, parametreler);

                return(result);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }