/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright (c) 2003-2012 by AG-Software *
* All Rights Reserved. *
* Contact information for AG-Software is available at http://www.ag-software.de *
* *
* Licence: *
* The agsXMPP SDK is released under a dual licence *
* agsXMPP can be used under either of two licences *
* *
* A commercial licence which is probably the most appropriate for commercial *
* corporate use and closed source projects. *
* *
* The GNU Public License (GPL) is probably most appropriate for inclusion in *
* other open source projects. *
* *
* See README.html for details. *
* *
* For general enquiries visit our website at: *
* http://www.ag-software.de *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
using System;
namespace agsXMPP.protocol.extensions.pubsub.@event
{
/*
Soliloquy
To be, or not to be: that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune,
Or to take arms against a sea of troubles,
And by opposing end them?
tag:denmark.lit,2003:entry-323972003-12-13T18:30:02Z2003-12-13T18:30:02Z
*/
// This class is the same as the Item class in the main pubsub namespace,
// so inherit it and overwrite some properties and functions
public class Item : agsXMPP.protocol.extensions.pubsub.Item
{
#region << Constructors >>
public Item() : base()
{
this.Namespace = Uri.PUBSUB_EVENT;
}
public Item(string id) : this()
{
this.Id = id;
}
#endregion
private const string RETRACT = "retract";
public bool Retract
{
get { return HasTag(RETRACT); }
set
{
if (value)
SetTag(RETRACT);
else
RemoveTag(RETRACT);
}
}
}
}