aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Events/Authentication/AuthenticationRequestEventArgs.cs
blob: 2143c69986ecdda467e2f705c85e2959410d0ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using MediaBrowser.Controller.Session;

namespace MediaBrowser.Controller.Events.Authentication;

/// <summary>
/// A class representing an authentication result event.
/// </summary>
public class AuthenticationRequestEventArgs : EventArgs
{
    /// <summary>
    /// Initializes a new instance of the <see cref="AuthenticationRequestEventArgs"/> class.
    /// </summary>
    /// <param name="request">The <see cref="AuthenticationRequest"/>.</param>
    public AuthenticationRequestEventArgs(AuthenticationRequest request)
    {
        Username = request.Username;
        UserId = request.UserId;
        App = request.App;
        AppVersion = request.AppVersion;
        DeviceId = request.DeviceId;
        DeviceName = request.DeviceName;
        RemoteEndPoint = request.RemoteEndPoint;
    }

    /// <summary>
    /// Gets or sets the user name.
    /// </summary>
    public string? Username { get; set; }

    /// <summary>
    /// Gets or sets the user id.
    /// </summary>
    public Guid? UserId { get; set; }

    /// <summary>
    /// Gets or sets the app.
    /// </summary>
    public string? App { get; set; }

    /// <summary>
    /// Gets or sets the app version.
    /// </summary>
    public string? AppVersion { get; set; }

    /// <summary>
    /// Gets or sets the device id.
    /// </summary>
    public string? DeviceId { get; set; }

    /// <summary>
    /// Gets or sets the device name.
    /// </summary>
    public string? DeviceName { get; set; }

    /// <summary>
    /// Gets or sets the remote endpoint.
    /// </summary>
    public string? RemoteEndPoint { get; set; }
}