/// <summary> /// Create a new OCPP clear cache response. /// </summary> /// <param name="Status">The success or failure of the clear cache command.</param> public ClearCacheResponse(ClearCacheStatus Status) : base(Result.OK()) { this.Status = Status; }
/// <summary> /// Create a new clear cache response. /// </summary> /// <param name="Request">The start transaction request leading to this response.</param> /// <param name="Status">The success or failure of the clear cache command.</param> public ClearCacheResponse(CS.ClearCacheRequest Request, ClearCacheStatus Status) : base(Request, Result.OK()) { this.Status = Status; }
public static String AsText(this ClearCacheStatus ClearCacheStatus) { switch (ClearCacheStatus) { case ClearCacheStatus.Accepted: return("Accepted"); case ClearCacheStatus.Rejected: return("Rejected"); default: return("unknown"); } }