blob: 83a9122432816fc9a3b44c87db6d488d12bbfeb3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Flex.Cluster.Smpp
{
public class SmppUdhiParameter
{
public readonly byte Tag;
public readonly byte Length;
public readonly byte[] Value;
public SmppUdhiParameter(byte tag, byte length, byte[] value)
{
Tag = tag;
Length = length;
Value = value;
}
public override string ToString()
{
var data = new StringBuilder();
foreach(var b in Value)
data.AppendFormat("{0:X2} ",b);
return string.Format("UDHI: {0} = {1}", Tag, data.ToString());
}
}
}
|