Represent a comment

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

Syntax

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

Examples

CopyC#
Ipernity ipernity = new Ipernity("apiKey", "apiSecret", "token");
ipernity.AlwaysSign = true;
Comment comment = new Comment(123456);
ipernity.ConfigureIpernityObject(comment);
try
{
    // edit the comment
    comment.Edit("New content");
    // reply to the comment
    comment.Reply("reply content");
    // delete the comment
    comment.Delete();
}
catch(IpernityException)
{
    Console.WriteLine("Ipernity returned an error : {0}", ex.Message);
}

Inheritance Hierarchy

System..::.Object
  IpernityNET.IpernityObjects..::.IpernityObject
    IpernityNET.IpernityObjects..::.Comment

See Also