Represent an Ipernity user

Namespace:  IpernityNET.IpernityObjects
Assembly:  IpernityNET (in IpernityNET.dll) Version: 0.3.1.0 (0.3.1.0)

Syntax

C#
public class User : IpernityObject
Visual Basic (Declaration)
Public Class User _
	Inherits IpernityObject
Visual C++
public ref class User : public IpernityObject

Examples

CopyC#
static void Main(string[] args)
{
    Ipernity ipernity = new Ipernity("apiKey", "apiSecret");
    ipernity.AlwaysSign = true;
    try
    {
        Account account = ipernity.AuthGetAccount("token");
        // get the user
        User user = account.UserInfos;
        // get all user informations
        user.Get();
        Console.WriteLine("User : {0}", user.Name);
        Console.WriteLine("Last time online : {0}", user.LastOnline);
        // get user album list
        IEnumerable>Album< albums = user.AlbumGetList();
        // get user group list
        IEnumerable>Group< groups = user.GroupGetList();
    }
    catch(IpernityException ex)
    {
        Console.WriteLine("Ipernity returned an error : {0}", ex.Message);
    }
}

Inheritance Hierarchy

System..::.Object
  IpernityNET.IpernityObjects..::.IpernityObject
    IpernityNET.IpernityObjects..::.User

See Also