Exemplo n.º 1
0
        public string?ToJson()
        {
            if (Ret == null)
            {
                return(null);
            }

            if (IsPainText)
            {
                return(Ret.ToString());
            }

            if (StatusCode == 200)
            {
                return(Ret.ToDtoJson());
            }

            return(JsonSerializer.Serialize(Ret, new JsonSerializerOptions
            {
                WriteIndented = true,
                IgnoreNullValues = true
            }));
        }
Exemplo n.º 2
0
 public void SetRetToStatus()
 {
     Status.Add(Const.StatusResultCode, Ret.ToString());
     Status.Add(Const.StatusResultDesc, ResultDesc ?? "");
 }
Exemplo n.º 3
0
	public override String ToString()
	{
	    return ("DoCondExp(\n" + Cond.ToString() + ",\n" + Ret.ToString() + ")\n");
	}