using Newtonsoft.Json; namespace SAGA.GplotRelationComputerManage { /// /// 图关系类型 /// 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); } } } }