| 123456789101112131415161718192021222324252627282930313233343536 |
- using IwbZero.ToolCommon.StringModel;
- namespace WePlatform.WeLib.Scene.Dto
- {
- public class VariableDto
- {
- public VariableDto()
- {
- }
- public VariableDto(string variable)
- {
- var arr = variable.StrToArray(":");
- if (arr.Length>0)
- {
- Id = arr[0];
- }
- if (arr.Length>1)
- {
- Type = arr[1];
- }
- if (arr.Length>2)
- {
- Value = arr[2];
- }
- }
- public string Id { get; set; }
- public string Type { get; set; }
- public string Value { get; set; }
- public override string ToString()
- {
- return $"[{Id}:{Type}:{Value}]";
- }
- }
- }
|