public (bool isSuccess, string result) SendSegmentStatusUpdate(string seg_id, sc.ASEGMENT.DisableType type, sc.E_SEG_STATUS satus) { string result = string.Empty; string[] action_targets = new string[] { "Segment", "StatusUpdate", }; StringBuilder sb = new StringBuilder(); sb.Append($"{nameof(seg_id)}={seg_id}").Append("&"); sb.Append($"{nameof(type)}={type.ToString()}").Append("&"); sb.Append($"{nameof(satus)}={satus.ToString()}"); byte[] byteArray = Encoding.UTF8.GetBytes(sb.ToString()); result = webClientManager.PostInfoToServer(WebClientManager.OHxC_CONTROL_URI, action_targets, WebClientManager.HTTP_METHOD.POST, byteArray); return(result == "", result); }
public SegmentStatusUpdateEventArgs(string _segmentID, sc.E_SEG_STATUS _status) { seg_id = _segmentID; status = _status; }