define(["emberdata","app","ajax"],function(a,b,c){var d=a.attr;return b.Classphoto=a.Model.extend({TemplateName:d("string")}),b.Classphoto.reopenClass({methods:{list:{map:"BBC.Album.GetClassPhotoAlbums",args:{}}},albumlist:function(){return c.send({method:"BBC.Album.GetClassPhotoAlbums",type:"GET",data:{}})},newalbum:function(a,b){return c.send({method:"BBC.Album.AddClassPhotoAlbum",type:"GET",data:{AlbumName:a,AlbumDesc:b}})},editalbum:function(a,b,d){return c.send({method:"BBC.Album.UpdatePhotoAlbum",type:"GET",data:{AlbumID:a,AlbumName:b,AlbumDesc:d}})},getalbum:function(a){return c.send({method:"BBC.Album.GetPhotoAlbum",type:"GET",data:{AlbumID:a}})},deletealbum:function(a){return c.send({method:"BBC.Album.DeletePhotoAlbum",type:"GET",data:{AlbumID:a}})},getphotolist:function(a){return c.send({method:"BBC.Album.GetPhotos",type:"GET",data:{AlbumID:a}})},addclassphoto:function(a,b,d,e,f){return c.send({method:"BBC.Album.AddPhoto",type:"GET",data:{AlbumID:a,FileKey:b,FileMsg:d,FileName:e,FileSize:f}})},deletephotolist:function(a,b){return c.send({method:"BBC.Album.DeletePhoto",type:"GET",data:{FileKey:a,AlbumID:""|b}})},setalbumcover:function(a,b){return c.send({method:"BBC.Album.SetAlbumCover",type:"GET",data:{AlbumID:a,Cover:b}})},GetClassAlbumsWithPhotos:function(){return c.send({method:"BBC.Album.GetClassAlbumsWithPhotos",type:"GET",data:{}})},GetPersonalAlbumsWithPhotos:function(a){return c.send({method:"BBC.Album.GetPersonalAlbumsWithPhotos",type:"GET",data:{PersonID:a}})}}),b.ClassPhoto});