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

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

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

Метод Описание
AddSpotted ( string mediaId, string targetUserId ) : bool

Adds a spotted user to the media. This corresponds to the media.addSpotted Hyves method.

AddTag ( string mediaId, Collection tags ) : bool

Adds a list of coma separated tags to a media. This corresponds to the media.addTag Hyves method.

CreateRespect ( string targetMediaId, HyvesRespectType respectType ) : bool

Creates respect for media. This corresponds to the media.createRespect Hyves method.

GetComments ( string mediaId ) : Collection

Gets the comments from the specified media. This corresponds to the media.getComments Hyves method.

GetComments ( string mediaId, bool useFancyLayout ) : Collection

Gets the comments from the specified media. This corresponds to the media.getComments Hyves method.

GetMedia ( Collection mediaIds ) : Collection

Gets the desired media. This corresponds to the media.get Hyves method.

GetMedia ( Collection mediaIds, HyvesMediaResponsefield responsefields ) : Collection

Gets the desired media. This corresponds to the media.get Hyves method.

GetMedia ( Collection mediaIds, HyvesMediaResponsefield responsefields, bool useFancyLayout ) : Collection

Gets the desired media. This corresponds to the media.get Hyves method.

GetMedia ( Collection mediaIds, bool useFancyLayout ) : Collection

Gets the desired media. This corresponds to the media.get Hyves method.

GetMediaByAlbum ( string albumId ) : Collection

Gets the desired media from an album. This corresponds to the media.getByAlbum Hyves method.

GetMediaByAlbum ( string albumId, HyvesMediaResponsefield responsefields ) : Collection

Gets the desired media from an album. This corresponds to the media.getByAlbum Hyves method.

GetMediaByAlbum ( string albumId, HyvesMediaResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection

Gets the desired media from an album. This corresponds to the media.getByAlbum Hyves method.

GetMediaByAlbum ( string albumId, bool useFancyLayout ) : Collection

Gets the desired media from an album. This corresponds to the media.getByAlbum Hyves method.

GetMediaByLoggedin ( HyvesMediaResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection

Gets the desired media from the loggedin user. This corresponds to the media.getByLoggedin Hyves method.

GetMediaByTag ( string tag ) : Collection

Gets the desired media from the specified user by tag. This corresponds to the media.getByTag Hyves method.

GetMediaByTag ( string tag, HyvesMediaResponsefield responsefields ) : Collection

Gets the desired media from the specified user by tag. This corresponds to the media.getByTag Hyves method.

GetMediaByTag ( string tag, HyvesMediaResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection

Gets the desired media from the specified user by tag. This corresponds to the media.getByTag Hyves method.

GetMediaByTag ( string tag, bool useFancyLayout ) : Collection

Gets the desired media from the specified user by tag. This corresponds to the media.getByTag Hyves method.

GetPublic ( HyvesSortType sortType, HyvesMediaType mediaType, HyvesTimeSpan timeSpan, HyvesMediaResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection

Gets the public media for the loggedin user. This corresponds to the media.getPublic Hyves method.

GetRespects ( string mediaId ) : Collection

Gets the respects from the specified media. This corresponds to the media.getRespects Hyves method.

GetRespects ( string mediaId, bool useFancyLayout ) : Collection

Gets the respects from the specified media. This corresponds to the media.getRespects Hyves method.

GetSpotted ( string mediaId, HyvesMediaResponsefield responsefields, bool useFancyLayout ) : Collection

Gets the spotted users of a media. This corresponds to the media.getSpotted Hyves method.

GetUploadMediaStatus ( UploadToken token ) : string
GetUploadToken ( ) : UploadToken

Retrieves an upload token and ip-address to initiate the upload of media.

This corresponds to the media.getUploadToken Hyves method.

UpdateGeolocation ( string mediaId, HyvesVisibility visibility, float latitude, float longitude ) : bool

Update the geolocation of a media. This corresponds to the media.updateGeolocation Hyves method.

UploadMedia ( UploadToken token, string fileName, byte fileData, string title, string description ) : void

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

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

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

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

Adds a spotted user to the media. This corresponds to the media.addSpotted Hyves method.
public AddSpotted ( string mediaId, string targetUserId ) : bool
mediaId string The identifier for the media.
targetUserId string The user that is spotted.
Результат bool

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

Adds a list of coma separated tags to a media. This corresponds to the media.addTag Hyves method.
public AddTag ( string mediaId, Collection tags ) : bool
mediaId string The identifier for the media.
tags Collection A list of tags.
Результат bool

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

Creates respect for media. This corresponds to the media.createRespect Hyves method.
public CreateRespect ( string targetMediaId, HyvesRespectType respectType ) : bool
targetMediaId string A single gadgetid.
respectType HyvesRespectType The type of the respect.
Результат bool

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

Gets the comments from the specified media. This corresponds to the media.getComments Hyves method.
public GetComments ( string mediaId ) : Collection
mediaId string The requested media ID.
Результат Collection

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

Gets the comments from the specified media. This corresponds to the media.getComments Hyves method.
public GetComments ( string mediaId, bool useFancyLayout ) : Collection
mediaId string The requested media ID.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

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

Gets the desired media. This corresponds to the media.get Hyves method.
public GetMedia ( Collection mediaIds ) : Collection
mediaIds Collection The list of requested media IDs.
Результат Collection

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

Gets the desired media. This corresponds to the media.get Hyves method.
public GetMedia ( Collection mediaIds, HyvesMediaResponsefield responsefields ) : Collection
mediaIds Collection The list of requested media IDs.
responsefields HyvesMediaResponsefield Get extra information from the media.
Результат Collection

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

Gets the desired media. This corresponds to the media.get Hyves method.
public GetMedia ( Collection mediaIds, HyvesMediaResponsefield responsefields, bool useFancyLayout ) : Collection
mediaIds Collection The list of requested media IDs.
responsefields HyvesMediaResponsefield Get extra information from the media.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

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

Gets the desired media. This corresponds to the media.get Hyves method.
public GetMedia ( Collection mediaIds, bool useFancyLayout ) : Collection
mediaIds Collection The list of requested media IDs.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

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

Gets the desired media from an album. This corresponds to the media.getByAlbum Hyves method.
public GetMediaByAlbum ( string albumId ) : Collection
albumId string The requested album ID.
Результат Collection

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

Gets the desired media from an album. This corresponds to the media.getByAlbum Hyves method.
public GetMediaByAlbum ( string albumId, HyvesMediaResponsefield responsefields ) : Collection
albumId string The requested album ID.
responsefields HyvesMediaResponsefield Get extra information from the media.
Результат Collection

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

Gets the desired media from an album. This corresponds to the media.getByAlbum Hyves method.
public GetMediaByAlbum ( string albumId, HyvesMediaResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection
albumId string The requested album ID.
responsefields HyvesMediaResponsefield Get extra information from the media.
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

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

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

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

Gets the desired media from the loggedin user. This corresponds to the media.getByLoggedin Hyves method.
public GetMediaByLoggedin ( HyvesMediaResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection
responsefields HyvesMediaResponsefield Get extra information from the media.
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

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

Gets the desired media from the specified user by tag. This corresponds to the media.getByTag Hyves method.
public GetMediaByTag ( string tag ) : Collection
tag string The requested tag.
Результат Collection

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

Gets the desired media from the specified user by tag. This corresponds to the media.getByTag Hyves method.
public GetMediaByTag ( string tag, HyvesMediaResponsefield responsefields ) : Collection
tag string The requested tag.
responsefields HyvesMediaResponsefield Get extra information from the media.
Результат Collection

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

Gets the desired media from the specified user by tag. This corresponds to the media.getByTag Hyves method.
public GetMediaByTag ( string tag, HyvesMediaResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection
tag string
responsefields HyvesMediaResponsefield Get extra information from the media.
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

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

Gets the desired media from the specified user by tag. This corresponds to the media.getByTag Hyves method.
public GetMediaByTag ( string tag, bool useFancyLayout ) : Collection
tag string The requested tag.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

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

Gets the public media for the loggedin user. This corresponds to the media.getPublic Hyves method.
public GetPublic ( HyvesSortType sortType, HyvesMediaType mediaType, HyvesTimeSpan timeSpan, HyvesMediaResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection
sortType HyvesSortType The sorttype
mediaType HyvesMediaType The media type of the results.
timeSpan HyvesTimeSpan The timespan to select from.
responsefields HyvesMediaResponsefield Get extra information from the media.
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

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

Gets the respects from the specified media. This corresponds to the media.getRespects Hyves method.
public GetRespects ( string mediaId ) : Collection
mediaId string The requested media ID.
Результат Collection

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

Gets the respects from the specified media. This corresponds to the media.getRespects Hyves method.
public GetRespects ( string mediaId, bool useFancyLayout ) : Collection
mediaId string The requested media ID.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

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

Gets the spotted users of a media. This corresponds to the media.getSpotted Hyves method.
public GetSpotted ( string mediaId, HyvesMediaResponsefield responsefields, bool useFancyLayout ) : Collection
mediaId string
responsefields HyvesMediaResponsefield Get extra information from the media.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

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

public GetUploadMediaStatus ( UploadToken token ) : string
token UploadToken
Результат string

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

Retrieves an upload token and ip-address to initiate the upload of media.
This corresponds to the media.getUploadToken Hyves method.
public GetUploadToken ( ) : UploadToken
Результат UploadToken

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

Update the geolocation of a media. This corresponds to the media.updateGeolocation Hyves method.
public UpdateGeolocation ( string mediaId, HyvesVisibility visibility, float latitude, float longitude ) : bool
mediaId string
visibility HyvesVisibility
latitude float
longitude float
Результат bool

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

public UploadMedia ( UploadToken token, string fileName, byte fileData, string title, string description ) : void
token UploadToken
fileName string
fileData byte
title string
description string
Результат void