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

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

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

Метод Описание
CreateGadget ( string specUrl, HyvesVisibility visibility, bool onProfilePage, bool onHomepage ) : Gadget

Create a gadget by XML (OpenSocial) for the current user. This corresponds to the gadgets.createByXML Hyves method.

CreateGadget ( string title, string html, HyvesVisibility visibility, bool mayCopy ) : Gadget

Create a gadget for the current user. This corresponds to the gadgets.create Hyves method.

CreateRespect ( string targetGadgetID, HyvesRespectType respectType ) : bool

Creates respect for an gadget. This corresponds to the gadgets.createRespect Hyves method.

GetComments ( string gadgetId ) : Collection

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

GetComments ( string gadgetId, bool useFancyLayout ) : Collection

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

GetGadget ( string gadgetId ) : Gadget

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.

GetGadget ( string gadgetId, HyvesGadgetResponsefield responsefield ) : Gadget

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.

GetGadget ( string gadgetId, HyvesGadgetResponsefield responsefields, bool useFancyLayout ) : Gadget

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.

GetGadget ( string gadgetId, bool useFancyLayout ) : Gadget

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.

GetGadgets ( Collection gadgetIds ) : Collection

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.

GetGadgets ( Collection gadgetIds, HyvesGadgetResponsefield responsefield ) : Collection

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.

GetGadgets ( Collection gadgetIds, HyvesGadgetResponsefield responsefields, bool useFancyLayout ) : Collection

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.

GetGadgets ( Collection gadgetIds, bool useFancyLayout ) : Collection

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.

GetGadgetsByHub ( string hubId ) : Collection

Gets the desired gadgets from the specified hub. This corresponds to the gadgets.getByHub Hyves method.

GetGadgetsByHub ( string hubId, HyvesGadgetResponsefield responsefield ) : Collection

Gets the desired gadgets from the specified hub. This corresponds to the gadgets.getByHub Hyves method.

GetGadgetsByHub ( string hubId, HyvesGadgetResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection

Gets the desired gadgets from the specified hub. This corresponds to the gadgets.getByHub Hyves method.

GetGadgetsByHub ( string hubId, bool useFancyLayout ) : Collection

Gets the desired gadgets from the specified hub. This corresponds to the gadgets.getByHub Hyves method.

GetGadgetsByUser ( string userId ) : Collection

Gets the desired gadgets from the specified user. This corresponds to the gadgets.getByUser Hyves method.

GetGadgetsByUser ( string userId, HyvesGadgetResponsefield responsefield ) : Collection

Gets the desired gadgets from the specified user. This corresponds to the gadgets.getByUser Hyves method.

GetGadgetsByUser ( string userId, HyvesGadgetResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection

Gets the desired gadgets from the specified user. This corresponds to the gadgets.getByUser Hyves method.

GetGadgetsByUser ( string userId, bool useFancyLayout ) : Collection

Gets the desired gadgets from the specified user. This corresponds to the gadgets.getByUser Hyves method.

GetRespects ( string gadgetId ) : Collection

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

GetRespects ( string gadgetId, bool useFancyLayout ) : Collection

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

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

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

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

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

Create a gadget by XML (OpenSocial) for the current user. This corresponds to the gadgets.createByXML Hyves method.
public CreateGadget ( string specUrl, HyvesVisibility visibility, bool onProfilePage, bool onHomepage ) : Gadget
specUrl string Url where the gadget spec for the gadget can be found.
visibility HyvesVisibility The visibility of the gadget.
onProfilePage bool Show gadget on profilepage.
onHomepage bool Show gadget on the homepage.
Результат Gadget

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

Create a gadget for the current user. This corresponds to the gadgets.create Hyves method.
public CreateGadget ( string title, string html, HyvesVisibility visibility, bool mayCopy ) : Gadget
title string The title of the gadget.
html string The html of the gadget.
visibility HyvesVisibility The visibility of the gadget.
mayCopy bool Allow to copy this gadget.
Результат Gadget

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

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

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

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

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

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

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

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.
public GetGadget ( string gadgetId ) : Gadget
gadgetId string The requested gadgetId.
Результат Gadget

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

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.
public GetGadget ( string gadgetId, HyvesGadgetResponsefield responsefield ) : Gadget
gadgetId string The requested gadgetId.
responsefield HyvesGadgetResponsefield
Результат Gadget

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

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.
public GetGadget ( string gadgetId, HyvesGadgetResponsefield responsefields, bool useFancyLayout ) : Gadget
gadgetId string The requested gadgetId.
responsefields HyvesGadgetResponsefield Get extra information from the gadget.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Gadget

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

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.
public GetGadget ( string gadgetId, bool useFancyLayout ) : Gadget
gadgetId string The requested gadgetId.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Gadget

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

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.
public GetGadgets ( Collection gadgetIds ) : Collection
gadgetIds Collection
Результат Collection

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

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.
public GetGadgets ( Collection gadgetIds, HyvesGadgetResponsefield responsefield ) : Collection
gadgetIds Collection
responsefield HyvesGadgetResponsefield
Результат Collection

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

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.
public GetGadgets ( Collection gadgetIds, HyvesGadgetResponsefield responsefields, bool useFancyLayout ) : Collection
gadgetIds Collection
responsefields HyvesGadgetResponsefield Get extra information from the gadget.
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

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

Gets the desired information about the specified gadget. This corresponds to the gadgets.get Hyves method.
public GetGadgets ( Collection gadgetIds, bool useFancyLayout ) : Collection
gadgetIds Collection
useFancyLayout bool Display information the same way that that is being done on the site, including things like smilies.
Результат Collection

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

Gets the desired gadgets from the specified hub. This corresponds to the gadgets.getByHub Hyves method.
public GetGadgetsByHub ( string hubId ) : Collection
hubId string The requested hub Id.
Результат Collection

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

Gets the desired gadgets from the specified hub. This corresponds to the gadgets.getByHub Hyves method.
public GetGadgetsByHub ( string hubId, HyvesGadgetResponsefield responsefield ) : Collection
hubId string The requested hub Id.
responsefield HyvesGadgetResponsefield
Результат Collection

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

Gets the desired gadgets from the specified hub. This corresponds to the gadgets.getByHub Hyves method.
public GetGadgetsByHub ( string hubId, HyvesGadgetResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection
hubId string The requested hub Id.
responsefields HyvesGadgetResponsefield
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

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

Gets the desired gadgets from the specified hub. This corresponds to the gadgets.getByHub Hyves method.
public GetGadgetsByHub ( 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

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

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

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

Gets the desired gadgets from the specified user. This corresponds to the gadgets.getByUser Hyves method.
public GetGadgetsByUser ( string userId, HyvesGadgetResponsefield responsefield ) : Collection
userId string The requested user Id.
responsefield HyvesGadgetResponsefield
Результат Collection

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

Gets the desired gadgets from the specified user. This corresponds to the gadgets.getByUser Hyves method.
public GetGadgetsByUser ( string userId, HyvesGadgetResponsefield responsefields, bool useFancyLayout, int page, int resultsPerPage ) : Collection
userId string The requested user Id.
responsefields HyvesGadgetResponsefield
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

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

Gets the desired gadgets from the specified user. This corresponds to the gadgets.getByUser Hyves method.
public GetGadgetsByUser ( 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

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

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

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

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