示例#1
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("startTime");
     writer.WriteStringValue(StartTime, "O");
     writer.WritePropertyName("endTime");
     writer.WriteStringValue(EndTime, "O");
     writer.WritePropertyName("timeMode");
     writer.WriteStringValue(TimeMode.ToString());
     writer.WriteEndObject();
 }
示例#2
0
 /// <summary>
 /// </summary>
 public GetAlertsOptions(DateTimeOffset startTime, DateTimeOffset endTime, TimeMode timeMode)
 {
     StartTime = startTime;
     EndTime   = endTime;
     TimeMode  = timeMode;
 }
示例#3
0
 public AlertingResultQuery(DateTimeOffset startTime, DateTimeOffset endTime, TimeMode timeMode)
 {
     StartTime = startTime;
     EndTime   = endTime;
     TimeMode  = timeMode;
 }