|
|
|
@ -6,7 +6,6 @@ namespace MatrixDotNetLib
|
|
|
|
|
{ |
|
|
|
|
public class MatrixApis |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
public static class Server |
|
|
|
|
{ |
|
|
|
|
/// <summary> |
|
|
|
@ -39,7 +38,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Server32administration/getWhoIs |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Whois = "/_matrix/client/r0/admin/whois/{userid}"; |
|
|
|
|
public static string Whois = "/_matrix/client/r0/admin/whois/{UserId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Performs a full text search across different categories. Posts with a search object. |
|
|
|
@ -71,7 +70,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Application32service32room32directory32management/updateAppserviceRoomDirectoryVsibility |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string ManageRooms = "/_matrix/client/r0/directory/list/appservice/{networkid}/{roomid}"; |
|
|
|
|
public static string ManageRooms = "/_matrix/client/r0/directory/list/appservice/{NetworkId}/{RoomId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Upgrades the given room to a particular room version. Posts with a room upgrade object. |
|
|
|
@ -79,7 +78,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Room32upgrades/upgradeRoom |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string UpgradeRoom = "/_matrix/client/r0/rooms/{roomid}/upgrade"; |
|
|
|
|
public static string UpgradeRoom = "/_matrix/client/r0/rooms/{RoomId}/upgrade"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Gets an OpenID token object for use with another service. Posts with a userId parameter. |
|
|
|
@ -87,7 +86,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/OpenID/requestOpenIdToken |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Openid = "/_matrix/client/r0/user/{userid}/openid/request_token"; |
|
|
|
|
public static string Openid = "/_matrix/client/r0/user/{UserId}/openid/request_token"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Gets client credentials for use when initiating a call. |
|
|
|
@ -138,7 +137,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Private string for device URL |
|
|
|
|
/// </summary> |
|
|
|
|
private static string _deviceIdUrl = "/_matrix/client/r0/devices/{deviceId}"; |
|
|
|
|
private static string _deviceIdUrl = "/_matrix/client/r0/devices/{DeviceId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Gets information about all devices for the current user. |
|
|
|
@ -186,7 +185,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// https://matrix.org/docs/api/client-server/#!/Send45to45Device32messaging/sendToDevice |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Send = "/_matrix/client/r0/sendtodevice/{eventtype}/{txnid}"; |
|
|
|
|
public static string Send = "/_matrix/client/r0/sendtodevice/{EventType}/{TxnId}"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class Media |
|
|
|
@ -206,7 +205,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Save = "/_matrix/media/r0/download/{servername}/{mediaid}"; |
|
|
|
|
public static string Save = "/_matrix/media/r0/download/{ServerName}/{MediaId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -214,7 +213,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Saveas = "/_matrix/media/r0/download/{servername}/{mediaid}/{filename}"; |
|
|
|
|
public static string Saveas = "/_matrix/media/r0/download/{ServerName}/{MediaId}/{Filename}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -230,7 +229,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Thumb = "/_matrix/media/r0/thumbnail/{servername}/{mediaid}"; |
|
|
|
|
public static string Thumb = "/_matrix/media/r0/thumbnail/{ServerName}/{MediaId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -286,7 +285,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Manage = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}"; |
|
|
|
|
public static string Manage = "/_matrix/client/r0/pushrules/{scope}/{Kind}/{RuleId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -294,7 +293,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Actions = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}/actions"; |
|
|
|
|
public static string Actions = "/_matrix/client/r0/pushrules/{scope}/{Kind}/{RuleId}/actions"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -302,7 +301,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Toggle = "/_matrix/client/r0/pushrules/{scope}/{kind}/{ruleid}/enabled"; |
|
|
|
|
public static string Toggle = "/_matrix/client/r0/pushrules/{scope}/{Kind}/{RuleId}/enabled"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class User |
|
|
|
@ -354,7 +353,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Profile = "/_matrix/client/r0/profile/{userid}"; |
|
|
|
|
public static string Profile = "/_matrix/client/r0/profile/{UserId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -362,7 +361,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Avatar = "/_matrix/client/r0/profile/{userid}/avtatar_url"; |
|
|
|
|
public static string Avatar = "/_matrix/client/r0/profile/{UserId}/avtatar_url"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -370,7 +369,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string DisplayName = "/_matrix/client/r0/profile/{userid}/displayname"; |
|
|
|
|
public static string DisplayName = "/_matrix/client/r0/profile/{UserId}/displayname"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -378,7 +377,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string ExtraInfo = "/_matrix/client/r0/user/{userid}/account_data/{type}"; |
|
|
|
|
public static string ExtraInfo = "/_matrix/client/r0/user/{UserId}/account_data/{type}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -386,7 +385,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string EventFilter = "/_matrix/client/r0/user/{userid}/filter"; |
|
|
|
|
public static string EventFilter = "/_matrix/client/r0/user/{UserId}/filter"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// Gets a list of the user's current rooms. |
|
|
|
@ -418,7 +417,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Status = "/_matrix/client/r0/presence/{userid}/status"; |
|
|
|
|
public static string Status = "/_matrix/client/r0/presence/{UserId}/status"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class UserRoom |
|
|
|
@ -430,7 +429,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Extrainfo = "/_matrix/client/r0/user/{userid}/rooms/{roomid}/account_data/{type}"; |
|
|
|
|
public static string Extrainfo = "/_matrix/client/r0/user/{UserId}/rooms/{RoomId}/account_data/{type}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -438,7 +437,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Tags = "/_matrix/client/r0/user/{userid}/rooms/{roomid}/tags"; |
|
|
|
|
public static string Tags = "/_matrix/client/r0/user/{UserId}/rooms/{RoomId}/tags"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class Room |
|
|
|
@ -458,7 +457,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Aliases = "/_matrix/client/unstable/org.matrix.msc2432/rooms/{roomid}/aliases"; |
|
|
|
|
public static string Aliases = "/_matrix/client/unstable/org.matrix.msc2432/rooms/{RoomId}/aliases"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -466,7 +465,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Active = "/_matrix/client/r0/rooms/{roomid}/joined_members"; |
|
|
|
|
public static string Active = "/_matrix/client/r0/rooms/{RoomId}/joined_members"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -474,7 +473,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Members = "/_matrix/client/r0/rooms/{roomid}/members"; |
|
|
|
|
public static string Members = "/_matrix/client/r0/rooms/{RoomId}/members"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -482,7 +481,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Messages = "/_matrix/client/r0/rooms/{roomid}/messages"; |
|
|
|
|
public static string Messages = "/_matrix/client/r0/rooms/{RoomId}/messages"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -490,7 +489,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Join = "/_matrix/client/r0/join/{roomidoralias}"; |
|
|
|
|
public static string Join = "/_matrix/client/r0/join/{RoomIdOrAlias}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -498,7 +497,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Ban = "/_matrix/client/r0/rooms/{roomid}/ban"; |
|
|
|
|
public static string Ban = "/_matrix/client/r0/rooms/{RoomId}/ban"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -506,7 +505,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Forget = "/_matrix/client/r0/rooms/{roomid}/forget"; |
|
|
|
|
public static string Forget = "/_matrix/client/r0/rooms/{RoomId}/forget"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -514,7 +513,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Invite = "/_matrix/client/r0/rooms/{roomid}/invite"; |
|
|
|
|
public static string Invite = "/_matrix/client/r0/rooms/{RoomId}/invite"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -522,7 +521,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string IdJoin = "/_matrix/client/r0/rooms/{roomid}/join"; |
|
|
|
|
public static string IdJoin = "/_matrix/client/r0/rooms/{RoomId}/join"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -530,7 +529,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Kick = "/_matrix/client/r0/rooms/{roomid}/kick"; |
|
|
|
|
public static string Kick = "/_matrix/client/r0/rooms/{RoomId}/kick"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -538,7 +537,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Leave = "/_matrix/client/r0/rooms/{roomid}/leave"; |
|
|
|
|
public static string Leave = "/_matrix/client/r0/rooms/{RoomId}/leave"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -546,7 +545,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Unban = "/_matrix/client/r0/rooms/{roomid}/unban"; |
|
|
|
|
public static string Unban = "/_matrix/client/r0/rooms/{RoomId}/unban"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -554,7 +553,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Marker = "/_matrix/client/r0/rooms/{roomid}/read_markers"; |
|
|
|
|
public static string Marker = "/_matrix/client/r0/rooms/{RoomId}/read_markers"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class RoomEvent |
|
|
|
@ -566,7 +565,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Context = "/_matrix/client/r0/rooms/{roomid}/context/{eventid}"; |
|
|
|
|
public static string Context = "/_matrix/client/r0/rooms/{RoomId}/context/{EventId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -574,7 +573,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Event = "/_matrix/client/r0/rooms/{roomid}/event/{eventid}"; |
|
|
|
|
public static string Event = "/_matrix/client/r0/rooms/{RoomId}/event/{EventId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -582,7 +581,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Receipt = "/_matrix/client/r0/rooms/{roomid}/receipt/{receipttype}/{eventid}"; |
|
|
|
|
public static string Receipt = "/_matrix/client/r0/rooms/{RoomId}/receipt/{ReceiptType}/{EventId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -590,7 +589,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Redact = "/_matrix/client/r0/rooms/{roomid}/redact/{eventid}/{txnid}"; |
|
|
|
|
public static string Redact = "/_matrix/client/r0/rooms/{RoomId}/redact/{EventId}/{TxnId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -598,7 +597,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Send = "/_matrix/client/r0/rooms/{roomid}/send/{eventtype}/{txnid}"; |
|
|
|
|
public static string Send = "/_matrix/client/r0/rooms/{RoomId}/send/{EventType}/{TxnId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -606,7 +605,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Typing = "/_matrix/client/r0/rooms/{roomid}/typing/{userid}"; |
|
|
|
|
public static string Typing = "/_matrix/client/r0/rooms/{RoomId}/typing/{UserId}"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -614,7 +613,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string Flag = "/_matrix/client/r0/rooms/{roomid}/report/{eventid}"; |
|
|
|
|
public static string Flag = "/_matrix/client/r0/rooms/{RoomId}/report/{EventId}"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static class RoomState |
|
|
|
@ -626,7 +625,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string List = "/_matrix/client/r0/rooms/{roomid}/state"; |
|
|
|
|
public static string List = "/_matrix/client/r0/rooms/{RoomId}/state"; |
|
|
|
|
|
|
|
|
|
/// <summary> |
|
|
|
|
/// |
|
|
|
@ -634,7 +633,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
/// <remarks> |
|
|
|
|
/// |
|
|
|
|
/// </remarks> |
|
|
|
|
public static string State = "/_matrix/client/r0/rooms/{roomid}/state/{eventtype}/{statekey}"; |
|
|
|
|
public static string State = "/_matrix/client/r0/rooms/{RoomId}/state/{EventType}/{StateKey}"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -643,7 +642,7 @@ namespace MatrixDotNetLib
|
|
|
|
|
public string DeviceId { get; set; } |
|
|
|
|
public string EventId { get; set; } |
|
|
|
|
public string EventType { get; set; } |
|
|
|
|
public string FileName { get; set; } |
|
|
|
|
public string Filename { get; set; } |
|
|
|
|
public string FilterId { get; set; } |
|
|
|
|
public string Kind { get; set; } |
|
|
|
|
public string MediaId { get; set; } |
|
|
|
|