Exemplo n.º 1
0
 public Comment(Uri self, string body, BasicUser author, BasicUser updateAuthor, DateTimeOffset?creationDate, DateTimeOffset?updateDate, Visibility visibility, long?id)
 {
     Author       = author;
     UpdateAuthor = updateAuthor;
     CreationDate = creationDate;
     UpdateDate   = updateDate;
     Body         = body;
     Self         = self;
     Visibility   = visibility;
     Id           = id;
 }
 public Filter(Uri self, long id, string name, string description, string jql, Uri viewUrl, Uri searchUrl, BasicUser owner, bool favourite)
     : base(self, name)
 {
     Id = id;
     Description = description;
     Jql = jql;
     ViewUrl = viewUrl;
     SearchUrl = searchUrl;
     Owner = owner;
     Favourite = favourite;
 }
Exemplo n.º 3
0
 internal Attachment(Uri self, string filename, BasicUser author, DateTimeOffset creationDate, int size, string mimeType, Uri contentUri, Uri thumbnailUri)
 {
     this.Self         = self;
     this.Filename     = filename;
     this.Author       = author;
     this.CreationDate = creationDate;
     this.Size         = size;
     this.MimeType     = mimeType;
     this.ContentUri   = contentUri;
     this.ThumbnailUri = thumbnailUri;
 }
 internal Attachment(Uri self, string filename, BasicUser author, DateTimeOffset creationDate, int size, string mimeType, Uri contentUri, Uri thumbnailUri)
 {
     this.Self = self;
     this.Filename = filename;
     this.Author = author;
     this.CreationDate = creationDate;
     this.Size = size;
     this.MimeType = mimeType;
     this.ContentUri = contentUri;
     this.ThumbnailUri = thumbnailUri;
 }
Exemplo n.º 5
0
 public Filter(Uri self, long id, string name, string description, string jql, Uri viewUrl, Uri searchUrl, BasicUser owner, bool favourite)
     : base(self, name)
 {
     Id          = id;
     Description = description;
     Jql         = jql;
     ViewUrl     = viewUrl;
     SearchUrl   = searchUrl;
     Owner       = owner;
     Favourite   = favourite;
 }
Exemplo n.º 6
0
 // TODO: Expandos!
 internal Project(
     Uri self,
     string key,
     string name,
     string description,
     BasicUser lead,
     Uri uri,
     IEnumerable <JiraVersion> versions,
     IEnumerable <BasicComponent> components,
     IEnumerable <IssueType> issueTypes,
     IEnumerable <BasicProjectRole> projectRoles)
     : base(self, key, name)
 {
     Description = description;
     Lead        = lead;
     Url         = uri;
     Versions    = versions;
     Components  = components;
     IssueTypes  = issueTypes;
     Roles       = projectRoles;
 }
 // TODO: Expandos!
 internal Project(
     Uri self,
     string key,
     string name,
     string description,
     BasicUser lead,
     Uri uri,
     IEnumerable<JiraVersion> versions,
     IEnumerable<BasicComponent> components,
     IEnumerable<IssueType> issueTypes,
     IEnumerable<BasicProjectRole> projectRoles)
     : base(self, key, name)
 {
     Description = description;
     Lead = lead;
     Url = uri;
     Versions = versions;
     Components = components;
     IssueTypes = issueTypes;
     Roles = projectRoles;
 }
Exemplo n.º 8
0
 public Component(Uri self, long?id, string name, string description, BasicUser lead, AssigneeInfo assigneeInfo)
     : base(self, id, name, description)
 {
     Lead         = lead;
     AssigneeInfo = assigneeInfo;
 }
Exemplo n.º 9
0
 public Component(Uri self, long?id, string name, string description, BasicUser lead)
     : this(self, id, name, description, lead, null)
 {
 }
Exemplo n.º 10
0
 internal User(BasicUser basic, string emaiAddress, IEnumerable <string> groups, IDictionary <string, Uri> avatarUris, bool active, string timezone)
     : this(basic.Self, basic.Name, basic.DisplayName, emaiAddress, groups, avatarUris, active, timezone)
 {
 }
Exemplo n.º 11
0
 internal User(BasicUser basic, string emaiAddress, IEnumerable<string> groups, IDictionary<string, Uri> avatarUris, bool active, string timezone)
     : this(basic.Self, basic.Name, basic.DisplayName, emaiAddress, groups, avatarUris, active, timezone)
 {
 }
 internal static JsonObject Generate(BasicUser user)
 {
     return new JsonObject { { "self", user.Self.ToString() }, { "name", user.Name }, { "displayName", user.DisplayName } };
 }
 public Component(Uri self, long? id, string name, string description, BasicUser lead, AssigneeInfo assigneeInfo)
     : base(self, id, name, description)
 {
     Lead = lead;
     AssigneeInfo = assigneeInfo;
 }
 public Component(Uri self, long? id, string name, string description, BasicUser lead)
     : this(self, id, name, description, lead, null)
 {
 }