Skip to main content
Version: 5.11.4

GetMatchRecord

public BackendReturnObject GetMatchRecord(string gamerIndate, MatchType matchType, MatchModeType matchModeType, string matchCardIndate);
public BackendReturnObject GetMatchRecord(string gamerIndate, MatchType matchType, MatchModeType matchModeType, string matchCardIndate, int limit);
public BackendReturnObject GetMatchRecord(string gamerIndate, MatchType matchType, MatchModeType matchModeType, string matchCardIndate, int limit, string offset);

Parameters

ValueTypeDescription
gamerIndatestringinDate of user to look up
matchTypeMatchTypeMatch type to look up
MatchModeTypeMatchModeTypeMatch mode type to look up
matchCardIndatestringMatching card inDate to look up
limitint(optional) Number of seasons to look up
offsetstring(optional) Paging starting point

Description

Look up a user's matching record of a specific match.

  • If 'Indefinite' matching is established in the console, all matching records will be included in a single row and loaded.
  • If a period is set in the console, a row is assigned for each period(season).
  • Rows are loaded in order from the most recent period.
    If the time period is set as a week and there are matching records for a month, the 4th week is arranged in Index 0, the 3rd week in Index 1, and so on.

Example

Synchronous

Backend.Match.GetMatchRecord(gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate);
Backend.Match.GetMatchRecord(gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate, 10);
Backend.Match.GetMatchRecord(gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate, 10, offset);

Asynchronous

Backend.Match.GetMatchRecord(gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate, (callback) => {
//todo
});
Backend.Match.GetMatchRecord(gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate, 10, (callback) => {
//todo
});
Backend.Match.GetMatchRecord(gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate, 10, offset, (callback) => {
//todo
});

SendQueue

SendQueue.Enqueue(Backend.Match.GetMatchRecord, gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate, (callback) => {
//todo
});
SendQueue.Enqueue(Backend.Match.GetMatchRecord, gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate, 10, (callback) => {
//todo
});
SendQueue.Enqueue(Backend.Match.GetMatchRecord, gamerIndate, MatchType.Random, MatchModeType.OneOnOne, matchCardIndate, 10, offset, (callback) => {
//todo
});

Return cases

Success cases

When there is a record
statusCode : 200

returnValue : refer to GetReturnValuetoJSON

When there are no records
statusCode : 200

returnValue : {"rows":[]}

GetReturnValuetoJSON

{
// Random
rows:
[
{
victory : { N : "1" },
draw : { N : "1" },
defeat : { N : "1" },
partition : { S : "_match_records_random_OneOnOne_" }, // Called matching type
inDate : { S : "2019-12-08" }, // Season start date(matching card creation date in case of 'Indefinite')
updatedAt : { S : "2019-12-10T05:32:44.985Z" }, // Last matchmaking date
nickname : { S : "theBackend" },
championship:{ N : "1" } // Only occurs when searching for a solo battle(Melee). The number of first places
},
{
victory: [Object],
draw: [Object],
defeat: [Object],
partition: [Object],
inDate: [Object],
updatedAt: [Object],
nickname: [Object],
championship:[Object]
},
],

// Point
rows:
[
{
point : { N : "1000" }
victory : { N : "1" },
draw : { N : "1" },
defeat : { N : "1" },
partition : { S : "_match_records_point_OneOnOne_" }, // Called matching type
inDate : { S : "2019-12-08" }, // Season start date(matching card creation date in case of 'Indefinite')
updatedAt : { S : "2019-12-10T05:32:44.985Z" } // Last matchmaking date
nickname : { S : "theBackend" }
championship:{ N : "1" } // Only occurs when searching for a solo battle(Melee). The number of first places
},
{
point: [Object],
victory: [Object],
draw: [Object],
defeat: [Object],
partition: [Object],
inDate: [Object],
updatedAt: [Object],
nickname: [Object],
championship:[Object]
},
],

// MMR
rows:
[
{
mmr : { N : "1000" }
victory : { N : "1" },
draw : { N : "1" },
defeat : { N : "1" },
partition : { S : "_match_records_mmr_OneOnOne_" }, // Called matching type
inDate : { S : "2019-12-08" }, // Season start date(matching card creation date in case of 'Indefinite')
updatedAt : { S : "2019-12-10T05:32:44.985Z" } // Last matchmaking date
nickname : { S : "theBackend" }
},
{
mmr: [Object],
victory: [Object],
draw: [Object],
defeat: [Object],
partition: [Object],
inDate: [Object],
updatedAt: [Object],
nickname: [Object],
},
],
}