예제 #1
0
 /// <summary>
 /// Create a new generic request message.
 /// </summary>
 /// <param name="ChargeBoxId">The charge box identification.</param>
 /// <param name="WebSocketAction">WebSocket Action.</param>
 /// <param name="RequestId">An optional request identification.</param>
 /// <param name="RequestTimestamp">An optional request timestamp.</param>
 /// <param name="RequestTimeout">The timeout of this request.</param>
 public ARequest(ChargeBox_Id ChargeBoxId,
                 String WebSocketAction,
                 Request_Id?RequestId      = null,
                 DateTime?RequestTimestamp = null,
                 TimeSpan?RequestTimeout   = null)
 {
     this.ChargeBoxId      = ChargeBoxId;
     this.WebSocketAction  = WebSocketAction;
     this.RequestId        = RequestId ?? Request_Id.Random();
     this.RequestTimestamp = RequestTimestamp ?? DateTime.UtcNow;
     this.RequestTimeout   = RequestTimeout;
 }
예제 #2
0
 /// <summary>
 /// Create a new generic request message.
 /// </summary>
 /// <param name="ChargeBoxId">The charge box identification.</param>
 /// <param name="WebSocketAction">WebSocket Action.</param>
 /// <param name="RequestId">An optional request identification.</param>
 /// <param name="RequestTimestamp">An optional request timestamp.</param>
 /// <param name="RequestTimeout">The timeout of this request.</param>
 public ARequest(ChargeBox_Id ChargeBoxId,
                 String WebSocketAction,
                 Request_Id?RequestId             = null,
                 EventTracking_Id EventTrackingId = null,
                 DateTime?RequestTimestamp        = null,
                 TimeSpan?RequestTimeout          = null)
 {
     this.ChargeBoxId      = ChargeBoxId;
     this.WebSocketAction  = WebSocketAction;
     this.RequestId        = RequestId ?? Request_Id.Random();
     this.EventTrackingId  = EventTrackingId ?? EventTracking_Id.New;
     this.RequestTimestamp = RequestTimestamp ?? Timestamp.Now;
     this.RequestTimeout   = RequestTimeout;
 }
예제 #3
0
 /// <summary>
 /// Create a new generic request message.
 /// </summary>
 public ARequest()
 {
     this.RequestId        = Request_Id.Parse("0");
     this.RequestTimestamp = Timestamp.Now;
     this.ChargeBoxId      = ChargeBox_Id.Parse("0");
 }