Class AddUserSession
Register a new user session. Returns the ID of the new user session
[RequiredPermissions(SbcPermissions.ManageUserSessions)]
public class AddUserSession : Command<int>
- Inheritance
-
AddUserSession
- Derived
- Inherited Members
Constructors
AddUserSession()
public AddUserSession()
Properties
AccessLevel
Access level of this session
public AccessLevel AccessLevel { get; set; }
Property Value
Origin
Origin of this session. For remote sessions, this equals the remote IP address
public string Origin { get; set; }
Property Value
SessionType
Type of this session
public SessionType SessionType { get; set; }
Property Value
Methods
UpdateFromJson(JsonElement)
Update this instance from a given JSON element
public override void UpdateFromJson(JsonElement jsonElement)
Parameters
jsonElementJsonElementElement to update this intance from
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader)
Update this instance from a given JSON element
public override void UpdateFromJsonReader(ref Utf8JsonReader reader)
Parameters
readerUtf8JsonReaderReader to update this intance from
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data