コード例 #1
0
        public void AddError(string uid, JsonApiLink aboutLink, int httpStatusCode, string appErrorCode, string title, string detail, object source, object meta)
        {
            if (Errors == null)
            {
                Errors = new JsonApiErrors();
            }

            Errors.Add(uid, aboutLink, httpStatusCode, appErrorCode, title, detail, source, meta);
        }
コード例 #2
0
 public void Add(string id, JsonApiLink aboutLink, int httpStatusCode, string appErrorCode, string title, string detail, object source, object meta)
 {
     Add(new JsonApiErrorObject
     {
         Id         = id,
         Links      = new JsonApiErrorLinkObject(aboutLink),
         Status     = httpStatusCode.ToString(),
         StatusCode = httpStatusCode,
         Code       = appErrorCode,
         Title      = title,
         Detail     = detail,
         Source     = source,
         Meta       = meta
     });
 }
コード例 #3
0
 public JsonApiLinksObject(JsonApiLink self = null, JsonApiLink related = null)
 {
     Self    = self;
     Related = related;
 }