Ejemplo n.º 1
0
 protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed)
 {
     base.setJSON(obj, host, processed);
     if (mDestabilizingLoad == IfcLogicalEnum.UNKNOWN)
     {
         if (mDatabase.Release == ReleaseVersion.IFC2x3)
         {
             obj["DestabilizingLoad"] = false;
         }
     }
     else
     {
         obj["DestabilizingLoad"] = mDestabilizingLoad == IfcLogicalEnum.TRUE;
     }
     if (mCausedBy > 0)
     {
         obj["CausedBy"] = CausedBy.getJson(this, processed);
     }
 }
Ejemplo n.º 2
0
 protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options)
 {
     base.setJSON(obj, host, options);
     if (mDestabilizingLoad == IfcLogicalEnum.UNKNOWN)
     {
         if (mDatabase.Release < ReleaseVersion.IFC4)
         {
             obj["DestabilizingLoad"] = false;
         }
     }
     else
     {
         obj["DestabilizingLoad"] = mDestabilizingLoad == IfcLogicalEnum.TRUE;
     }
     if (mCausedBy > 0)
     {
         obj["CausedBy"] = CausedBy.getJson(this, options);
     }
 }
 public JsonApiException(CausedBy kind, string message, Exception innerException)
     : base(message, innerException)
 {
     CausedBy = kind;
 }
 public JsonApiException(CausedBy causedBy, string message)
     : base(message)
 {
     CausedBy = causedBy;
 }
 internal JsonApiFormatException(CausedBy causedBy, string message)
     : base(causedBy, $"Invalid JSON API Format: {message}")
 {
 }