📄 packet.cs
字号:
using System;
using System.Xml;
using System.Xml.Serialization;
using gowk.core.packets.errors;
using gowk.core.serizlize;
namespace gowk.core.packets
{
[System.Serializable]
public class Packet//:IPacket
{
private string _ID,_From,_To,_type;
private StanzaError _Error;
public Packet()
{
}
[System.Xml.Serialization.XmlAttribute("id")]
public string ID
{
get{return this._ID;}
set{this._ID=value;}
}
[System.Xml.Serialization.XmlAttribute("from")]
public string From
{
get{return this._From;}
set{this._From=value;}
}
[System.Xml.Serialization.XmlAttribute("to")]
public string To
{
get{return this._To;}
set{this._To=value;}
}
[System.Xml.Serialization.XmlAttribute("type")]
public string Type
{
get{return this._type;}
set{this._type=value;}
}
[System.Xml.Serialization.XmlElement("error")]
public StanzaError Error
{
get{return this._Error;}
set{this._Error=value;}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -