Table of Contents

Class Request

Namespace
UdpChat.Lib.Authentication
Assembly
UdpChat.Lib.dll

Request to register a user to the server. After a Request there is associated expected Response

public class Request : ChatSendable
Inheritance
Request
Inherited Members

Constructors

Request(string, string, RequestType)

Initializes a new instance of the Request class with the specified username, password, and request type.

public Request(string username, string password, Request.RequestType type)

Parameters

username string

The username of the user.

password string

The password of the user.

type Request.RequestType

The type of the request.

Properties

Password

Sets or gets the password of the user

public string Password { get; set; }

Property Value

string

The password of the user

Type

Gets or sets the type of the request.

public Request.RequestType Type { get; set; }

Property Value

Request.RequestType

The type of the request. See Request.RequestType for available request types.

Username

Sets or gets the username of the user

public string Username { get; set; }

Property Value

string

The username of the user

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.