Class GroupDto
Contact group data
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "GroupDto")]
public class GroupDto : IValidatableObject
Constructors
View SourceGroupDto()
Initializes a new instance of the GroupDto class.
Declaration
[JsonConstructor]
protected GroupDto()
GroupDto(Guid, string, string, DateTime)
Initializes a new instance of the GroupDto class.
Declaration
public GroupDto(Guid id = default, string name = null, string description = null, DateTime createdAt = default)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | id (required). |
string | name | name (required). |
string | description | description. |
DateTime | createdAt | createdAt (required). |
Properties
View SourceCreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Description
Gets or Sets Description
Declaration
[DataMember(Name = "description", EmitDefaultValue = true)]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String presentation of the object |