blob: 4467c22797583f69a9a2ab1832e9f41be1befc8f (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Hik.Samples.Scs.IrcChat.Arguments
{
/// <summary>
/// Represents text style of messages.
/// </summary>
[Serializable]
public class MessageTextStyle
{
/// <summary>
/// True, if message is sent as Bold.
/// </summary>
public bool IsBold { get; set; }
/// <summary>
/// True, if message is sent as italic.
/// </summary>
public bool IsItalic { get; set; }
/// <summary>
/// Font family of message.
/// </summary>
public string FontFamily { get; set; }
/// <summary>
/// Message text color.
/// </summary>
public Color TextColor { get; set; }
/// <summary>
/// Size of message text.
/// </summary>
public int TextSize { get; set; }
/// <summary>
/// Constructor.
/// </summary>
public MessageTextStyle()
{
FontFamily = "Verdana";
TextColor = new Color {Blue = 255, Green = 255, Red = 255};
TextSize = 12;
}
/// <summary>
/// Represents a color.
/// </summary>
[Serializable]
public class Color
{
/// <summary>
/// Red value of color.
/// </summary>
public byte Red { get; set; }
/// <summary>
/// Green value of color.
/// </summary>
public byte Green { get; set; }
/// <summary>
/// Blue value of color.
/// </summary>
public byte Blue { get; set; }
}
}
}
|