internal JsonApiMessage(Message message, string requestUri)
 {
     id            = SessionController.Context.Messages.IndexOf(message);
     attributes    = new MessageAttributes(message);
     relationships = new JsonApiRelationship(message.Creator, requestUri);
     links         = new SelfLink(requestUri, id);
 }
Example #2
0
 internal JsonApiUser(string userUri, string userName, int userId)
 {
     id         = userId;
     links      = new SelfLink(userUri, userId);
     attributes = new UserAttributes(userName);
 }