📄 sipcrequest.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -