forked from QuantBox/QuantBox.APIProvider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserItem.cs
More file actions
60 lines (54 loc) · 1.44 KB
/
Copy pathUserItem.cs
File metadata and controls
60 lines (54 loc) · 1.44 KB
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XAPI;
namespace QuantBox.APIProvider.Single
{
[DefaultProperty("Label")]
public class UserItem:ICloneable
{
[Category("标签")]
public string Label
{
get;
set;
}
/// <summary>
/// 用户代码
/// </summary>
[Category("账号")]
public string UserID { get; set; }
/// <summary>
/// 密码
/// </summary>
[Category("账号")]
public string Password { get; set; }
/// <summary>
/// 扩展信息
/// </summary>
[Category("账号")]
public string ExtInfoChar64 { get; set; }
[Category("账号")]
public int ExtInfoInt32 { get; set; }
public UserInfoField ToStruct()
{
UserInfoField field = new UserInfoField();
field.UserID = this.UserID;
field.Password = this.Password;
field.ExtInfoChar64 = this.ExtInfoChar64;
field.ExtInfoInt32 = this.ExtInfoInt32;
return field;
}
public override string ToString()
{
return string.Format("Label={0};UserID={1}", this.Label,this.UserID);
}
public object Clone()
{
return this.MemberwiseClone();
}
}
}