Represent a group
Namespace:
IpernityNET.IpernityObjectsAssembly: IpernityNET (in IpernityNET.dll) Version: 0.3.1.0 (0.3.1.0)
Syntax
C# |
---|
public class Group : IpernityObject |
Visual Basic (Declaration) |
---|
Public Class Group _ Inherits IpernityObject |
Visual C++ |
---|
public ref class Group : public IpernityObject |
Examples
CopyC#
static void Main(string[] args) { Ipernity ipernity = new Ipernity("apiKey", "apiSecret"); ipernity.AlwaysSign = true; //Create a new group and configure it Group group = new Group(123456); ipernity.ConfigureIpernityObject(group); try { // get group informations group.Get(); Console.WriteLine("{0} ({1} members", group.Title, group.CountMember); Document document = new Document(123456); // add a document to the group DocumentAddResult addResult = group.DocsAdd(document); // get document context DocumentContext context = group.DocsGetContext(document, 10, 10, Thumbsize.OneHundred); // get first page of docs IEnumerable>Document< groupDocs = g.DocsGetList(50, 1); // remove the doc from the group RemoveDocsResults removeResults = group.RemoveDocs(document); } catch(IpernityException ex) { Console.WriteLine("Ipernity returned an error : {0}", ex.Message); } }
Inheritance Hierarchy
System..::.Object
IpernityNET.IpernityObjects..::.IpernityObject
IpernityNET.IpernityObjects..::.Group
IpernityNET.IpernityObjects..::.IpernityObject
IpernityNET.IpernityObjects..::.Group