packet.cs
来自「语音视频功能 里面实现了基本的QQ与语音对话」· CS 代码 · 共 51 行
CS
51 行
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 + =
减小字号Ctrl + -
显示快捷键?