sipcrequest.cs
来自「破解的飞信源代码」· CS 代码 · 共 52 行
CS
52 行
namespace Imps.Base.Sipc
{
using System;
public class SipcRequest : SipcMessage
{
private string _method;
private string _uri;
public SipcRequest(string method)
{
this._method = string.Empty;
this._uri = string.Empty;
this._method = method.Trim().ToUpper();
}
public SipcRequest(string method, string uri)
{
this._method = string.Empty;
this._uri = string.Empty;
this._method = method.Trim().ToUpper();
this.Uri = uri;
}
protected override string GetFirstLine()
{
return string.Format("{0} {1} SIP-C/2.0", this._method, this._uri);
}
public string Method
{
get
{
return this._method;
}
}
public string Uri
{
get
{
return this._uri;
}
set
{
this._uri = (value == null) ? string.Empty : value.Trim();
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?