public Photo Map(ApiPhoto apiPhoto)
 {
     return(new Photo()
     {
         Title = apiPhoto.Title,
         Url = string.Format("https://farm{0}.staticflickr.com/{1}/{2}_{3}.jpg",
                             apiPhoto.Farm,
                             apiPhoto.Server,
                             apiPhoto.Id,
                             apiPhoto.Secret)
     });
 }
예제 #2
0
        String InterfacePhoto.AddPhotoWCF(String path, DateTime data_creare, String description)
        {
            ApiPhoto apiPhoto = new ApiPhoto();

            return(apiPhoto.AddPhoto(path, data_creare, description));
        }
예제 #3
0
        List <Photo> InterfacePhoto.GetPhotosByDateWCF(DateTime date)
        {
            ApiPhoto apiPhoto = new ApiPhoto();

            return(apiPhoto.GetPhotosByDate(date));
        }
예제 #4
0
        String InterfacePhoto.MarkDeletedWCF(int id)
        {
            ApiPhoto apiPhoto = new ApiPhoto();

            return(apiPhoto.MarkDeleted(id));
        }
예제 #5
0
        List <Photo> InterfacePhoto.GetPhotosByDescriereWCF(String descriere)
        {
            ApiPhoto apiPhoto = new ApiPhoto();

            return(apiPhoto.GetPhotosByDescriere(descriere));
        }
예제 #6
0
        Photo InterfacePhoto.GetPhotosByIdWCF(int id)
        {
            ApiPhoto apiPhoto = new ApiPhoto();

            return(apiPhoto.GetPhotosById(id));
        }
예제 #7
0
        Photo InterfacePhoto.EditPhotoWCF(int id, String path, DateTime data_creare, String description)
        {
            ApiPhoto apiPhoto = new ApiPhoto();

            return(apiPhoto.EditPhoto(id, path, data_creare, description));
        }
예제 #8
0
        List <Photo> InterfacePhoto.GetAllPhotosWCF()
        {
            ApiPhoto apiPhoto = new ApiPhoto();

            return(apiPhoto.GetAllPhotos());
        }
예제 #9
0
        String InterfacePhoto.DeletePhotoWCF(int id)
        {
            ApiPhoto apiPhoto = new ApiPhoto();

            return(apiPhoto.DeletePhoto(id));
        }