C# Class ApiCore.Photos.PhotosFactory

Inheritance: BaseFactory
Show file Open project: nolka/vkdotnet Class Usage Examples

Public Methods

Method Description
CreateAlbum ( string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description ) : AlbumEntry
EditAlbum ( int albumId, string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description ) : bool
EditPhoto ( int userId, int photoid, string text ) : bool
GetAlbums ( int userId, int albums ) : List
GetAll ( int userId, int count, int offset ) : List
GetPhotos ( int userId, int albumId, int photoIds, int count, int offset ) : List
GetPhotosById ( string photos ) : List
GetTags ( int photoId, int ownerId ) : List
GetUploadServer ( int albumId, int groupId, bool saveBig ) : PhotoUploadInfo
GetUserPhotos ( int userId, int count, int offset ) : List
MovePhoto ( int photoId, int toAlbumId, int ownerId ) : bool
PhotosFactory ( ApiManager manager ) : System

PutTag ( int ownerId, int photoId, int userId, float x, float y, float x2, float y2 ) : int
RemoveTag ( int ownerId, int photoId, int tagId ) : bool
ReorderAlbums ( int albumId, int before, int after, int ownerId ) : bool
ReorderPhotos ( int photoId, int before, int after, int ownerId ) : bool
UsePhotoAsCover ( int photoId, int albumId, int ownerId ) : bool

Private Methods

Method Description
buildAlbumEntry ( XmlNode node ) : AlbumEntry
buildAlbumsList ( XmlNode data ) : List
buildPhotoEntryFull ( XmlNode node ) : PhotoEntryFull
buildPhotoEntryShort ( XmlNode node ) : ApiCore.Photos.PhotoEntryShort
buildPhotoTagsList ( XmlNode result ) : List
buildPhotosListFull ( XmlNode data ) : List
buildPhotosListShort ( XmlNode data ) : List

Method Details

CreateAlbum() public method

public CreateAlbum ( string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description ) : AlbumEntry
title string
access AlbumAccessPrivacy
comment AlbumCommentPrivacy
description string
return AlbumEntry

EditAlbum() public method

public EditAlbum ( int albumId, string title, AlbumAccessPrivacy access, AlbumCommentPrivacy comment, string description ) : bool
albumId int
title string
access AlbumAccessPrivacy
comment AlbumCommentPrivacy
description string
return bool

EditPhoto() public method

public EditPhoto ( int userId, int photoid, string text ) : bool
userId int
photoid int
text string
return bool

GetAlbums() public method

public GetAlbums ( int userId, int albums ) : List
userId int
albums int
return List

GetAll() public method

public GetAll ( int userId, int count, int offset ) : List
userId int
count int
offset int
return List

GetPhotos() public method

public GetPhotos ( int userId, int albumId, int photoIds, int count, int offset ) : List
userId int
albumId int
photoIds int
count int
offset int
return List

GetPhotosById() public method

public GetPhotosById ( string photos ) : List
photos string
return List

GetTags() public method

public GetTags ( int photoId, int ownerId ) : List
photoId int
ownerId int
return List

GetUploadServer() public method

public GetUploadServer ( int albumId, int groupId, bool saveBig ) : PhotoUploadInfo
albumId int
groupId int
saveBig bool
return PhotoUploadInfo

GetUserPhotos() public method

public GetUserPhotos ( int userId, int count, int offset ) : List
userId int
count int
offset int
return List

MovePhoto() public method

public MovePhoto ( int photoId, int toAlbumId, int ownerId ) : bool
photoId int
toAlbumId int
ownerId int
return bool

PhotosFactory() public method

public PhotosFactory ( ApiManager manager ) : System
manager ApiManager
return System

PutTag() public method

public PutTag ( int ownerId, int photoId, int userId, float x, float y, float x2, float y2 ) : int
ownerId int
photoId int
userId int
x float
y float
x2 float
y2 float
return int

RemoveTag() public method

public RemoveTag ( int ownerId, int photoId, int tagId ) : bool
ownerId int
photoId int
tagId int
return bool

ReorderAlbums() public method

public ReorderAlbums ( int albumId, int before, int after, int ownerId ) : bool
albumId int
before int
after int
ownerId int
return bool

ReorderPhotos() public method

public ReorderPhotos ( int photoId, int before, int after, int ownerId ) : bool
photoId int
before int
after int
ownerId int
return bool

UsePhotoAsCover() public method

public UsePhotoAsCover ( int photoId, int albumId, int ownerId ) : bool
photoId int
albumId int
ownerId int
return bool