12345678910111213141516171819202122232425262728 |
- using Newtonsoft.Json;
- namespace SAGA.GplotRelationComputerManage
- {
- /// <summary>
- /// 图关系类型
- /// </summary>
- public class GraphRelationItem
- {
- [JsonProperty("rel_type")]
- public string RelType { get; set; }
- [JsonProperty("from_id")]
- public string FromId { get; set; }
- [JsonProperty("to_id")]
- public string ToId { get; set; }
- [JsonProperty("graph_id")]
- public string GraphId { get; set; }
- public bool IsValid
- {
- get
- {
- return !string.IsNullOrWhiteSpace(GraphId)&&!string.IsNullOrWhiteSpace(FromId) && !string.IsNullOrWhiteSpace(ToId);
- }
- }
-
- }
- }
|