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); }
internal JsonApiUser(string userUri, string userName, int userId) { id = userId; links = new SelfLink(userUri, userId); attributes = new UserAttributes(userName); }