Class User
User
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class User : IEquatable<User>
Constructors
User()
Initializes a new instance of the User class.
Declaration
protected User()
User(String, String, Nullable<User.StatusEnum>, UserLinks)
Initializes a new instance of the User class.
Declaration
public User(string oauthID = null, string name = null, User.StatusEnum? status = null, UserLinks links = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | oauthID | oauthID. |
System.String | name | name (required). |
System.Nullable<User.StatusEnum> | status | If inactive the user is inactive. (default to StatusEnum.Active). |
UserLinks | links | links. |
Properties
Id
Gets or Sets Id
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Links
Gets or Sets Links
Declaration
public UserLinks Links { get; set; }
Property Value
Type | Description |
---|---|
UserLinks |
Name
Gets or Sets Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OauthID
Gets or Sets OauthID
Declaration
public string OauthID { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Status
If inactive the user is inactive.
Declaration
public User.StatusEnum? Status { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<User.StatusEnum> | If inactive the user is inactive. |
Methods
Equals(User)
Returns true if User instances are equal
Declaration
public bool Equals(User input)
Parameters
Type | Name | Description |
---|---|---|
User | input | Instance of User to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |