1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 2 * Copyright (c) 2003-2012 by AG-Software * 3 * All Rights Reserved. * 4 * Contact information for AG-Software is available at http://www.ag-software.de * 5 * * 6 * Licence: * 7 * The agsXMPP SDK is released under a dual licence * 8 * agsXMPP can be used under either of two licences * 9 * * 10 * A commercial licence which is probably the most appropriate for commercial * 11 * corporate use and closed source projects. * 12 * * 13 * The GNU Public License (GPL) is probably most appropriate for inclusion in * 14 * other open source projects. * 15 * * 16 * See README.html for details. * 17 * * 18 * For general enquiries visit our website at: * 19 * http://www.ag-software.de * 20 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 21 22 using System; 23 24 using agsXMPP.protocol.client; 25 26 namespace agsXMPP.protocol.iq.session 27 { 28 /// <summary> 29 /// Starting the session, this is done after resource binding 30 /// </summary> 31 public class SessionIq : IQ 32 { 33 /* 34 SEND: <iq xmlns="jabber:client" id="agsXMPP_2" type="set" to="jabber.ru"> 35 <session xmlns="urn:ietf:params:xml:ns:xmpp-session" /> 36 </iq> 37 RECV: <iq xmlns="jabber:client" from="jabber.ru" type="result" id="agsXMPP_2"> 38 <session xmlns="urn:ietf:params:xml:ns:xmpp-session" /> 39 </iq> 40 */ 41 private Session m_Session = new Session(); 42 SessionIq()43 public SessionIq() 44 { 45 this.GenerateId(); 46 this.AddChild(m_Session); 47 } 48 SessionIq(IqType type)49 public SessionIq(IqType type) : this() 50 { 51 this.Type = type; 52 } 53 SessionIq(IqType type, Jid to)54 public SessionIq(IqType type, Jid to) : this() 55 { 56 this.Type = type; 57 this.To = to; 58 } 59 } 60 } 61