C# Класс Hyves.Service.AlbumsService

Represents the service APIs that allow access to information on Hyves albums.
Показать файл Открыть проект

Открытые методы

Метод Описание
AddMediaToAlbum ( string albumId, Collection mediaIds ) : bool
CreateAlbum ( string title, HyvesVisibility visibility, HyvesVisibility printability, HyvesAlbumResponsefield responseFields ) : bool

Creates a new album. This corresponds to the albums.create Hyves method.

GetAlbums ( string userId ) : Collection

Gets the desired albums from a user. This corresponds to the albums.getByUser Hyves method.

GetAlbums ( string albumId, HyvesAlbumResponsefield responseFields, bool useFancyLayout ) : Collection

Gets the desired albums from the specified albums. This corresponds to the albums.get Hyves method.

GetAlbums ( string userId, bool useFancyLayout ) : Collection

Gets the desired albums from a user. This corresponds to the albums.getByUser Hyves method.

GetAlbumsByHub ( string hubId ) : Collection

Gets all visible albums of the specified hub. This corresponds to the albums.getByHub Hyves method.

GetAlbumsByHub ( string hubId, bool useFancyLayout ) : Collection

Gets all visible albums of the specified hub. This corresponds to the albums.getByHub Hyves method.

GetAlbumsByHub ( string hubId, bool useFancyLayout, int page, int resultsPerPage ) : Collection

Gets all visible albums of the specified hub. This corresponds to the albums.getByHub Hyves method.

GetAlbumsByUser ( string userId, bool useFancyLayout ) : Collection

Gets all visible albums of the specified user. This corresponds to the albums.getByUser Hyves method.

GetAlbumsByUser ( string userId, bool useFancyLayout, int page, int resultsPerPage ) : Collection

Gets all visible albums of the specified user. This corresponds to the albums.getByUser Hyves method.

GetBuiltinAlbums ( HyvesVisibility visibility, HyvesAlbumResponsefield responseFields, bool useFancyLayout ) : Collection

Gets the builtin albums from a user. This corresponds to the albums.getBuiltin Hyves method.

RemoveMediaFromAlbum ( string albumId, Collection mediaIds ) : bool

Приватные методы

Метод Описание
AlbumsService ( HyvesSession session ) : System
ConvertResponsefieldsToString ( HyvesAlbumResponsefield responsefields ) : string
ConvertResponsefieldsToString ( HyvesMediaResponsefield responsefields ) : string

Описание методов

AddMediaToAlbum() публичный Метод

public AddMediaToAlbum ( string albumId, Collection mediaIds ) : bool
albumId string
mediaIds Collection
Результат bool

CreateAlbum() публичный Метод

Creates a new album. This corresponds to the albums.create Hyves method.
public CreateAlbum ( string title, HyvesVisibility visibility, HyvesVisibility printability, HyvesAlbumResponsefield responseFields ) : bool
title string Title of the album.
visibility HyvesVisibility The visibility of the album.
printability HyvesVisibility The printability of the album.
responseFields HyvesAlbumResponsefield Get extra information from the created album.
Результат bool

GetAlbums() публичный Метод

Gets the desired albums from a user. This corresponds to the albums.getByUser Hyves method.
public GetAlbums ( string userId ) : Collection
userId string The requested user Id.
Результат Collection

GetAlbums() публичный Метод

Gets the desired albums from the specified albums. This corresponds to the albums.get Hyves method.
public GetAlbums ( string albumId, HyvesAlbumResponsefield responseFields, bool useFancyLayout ) : Collection
albumId string The requested album ID.
responseFields HyvesAlbumResponsefield
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

GetAlbums() публичный Метод

Gets the desired albums from a user. This corresponds to the albums.getByUser Hyves method.
public GetAlbums ( string userId, bool useFancyLayout ) : Collection
userId string The requested user Id.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

GetAlbumsByHub() публичный Метод

Gets all visible albums of the specified hub. This corresponds to the albums.getByHub Hyves method.
public GetAlbumsByHub ( string hubId ) : Collection
hubId string
Результат Collection

GetAlbumsByHub() публичный Метод

Gets all visible albums of the specified hub. This corresponds to the albums.getByHub Hyves method.
public GetAlbumsByHub ( string hubId, bool useFancyLayout ) : Collection
hubId string The requested hub Id.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

GetAlbumsByHub() публичный Метод

Gets all visible albums of the specified hub. This corresponds to the albums.getByHub Hyves method.
public GetAlbumsByHub ( string hubId, bool useFancyLayout, int page, int resultsPerPage ) : Collection
hubId string The requested hub Id.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
page int The requested page.
resultsPerPage int The number of results per page.
Результат Collection

GetAlbumsByUser() публичный Метод

Gets all visible albums of the specified user. This corresponds to the albums.getByUser Hyves method.
public GetAlbumsByUser ( string userId, bool useFancyLayout ) : Collection
userId string The identifier for the requested user.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

GetAlbumsByUser() публичный Метод

Gets all visible albums of the specified user. This corresponds to the albums.getByUser Hyves method.
public GetAlbumsByUser ( string userId, bool useFancyLayout, int page, int resultsPerPage ) : Collection
userId string The identifier for the requested user.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
page int The requested page.
resultsPerPage int The number of results per page.
Результат Collection

GetBuiltinAlbums() публичный Метод

Gets the builtin albums from a user. This corresponds to the albums.getBuiltin Hyves method.
public GetBuiltinAlbums ( HyvesVisibility visibility, HyvesAlbumResponsefield responseFields, bool useFancyLayout ) : Collection
visibility HyvesVisibility The visibility of the albums.
responseFields HyvesAlbumResponsefield
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

RemoveMediaFromAlbum() публичный Метод

public RemoveMediaFromAlbum ( string albumId, Collection mediaIds ) : bool
albumId string
mediaIds Collection
Результат bool