Skip to main content
Version: 5.11.8

GetCountryCodeByIndate

public BackendReturnObject GetCountryCodeByIndate(string inDate);

Parameter

ValueTypeDescription
inDatestringUser InDate

Description

The country codes of other users are retrieved.

Example

Synchronous

BackendReturnObject bro = Backend.BMember.GetCountryCodeByIndate("2020-12-16T04:58:28.604Z");
string countryByString = bro.GetReturnValuetoJSON()["country"]["S"].ToString();

//Convert to country code
BackEnd.GlobalSupport.CountryCode countryCode = BackEnd.GlobalSupport.CountryCodeDic.GetCountryName(countryByString);

Asynchronous

Backend.BMember.GetCountryCodeByIndate("2020-12-16T04:58:28.604Z", (callback) =>
{
string countryByString = bro.GetReturnValuetoJSON()["country"]["S"].ToString();

//Convert to country code
BackEnd.GlobalSupport.CountryCode countryCode =
BackEnd.GlobalSupport.CountryCodeDic.GetCountryName(countryByString);
});

SendQueue

SendQueue.Enqueue(Backend.BMember.GetCountryCodeByIndate, "2020-12-16T04:58:28.604Z", (callback) =>
{
string countryByString = bro.GetReturnValuetoJSON()["country"]["S"].ToString();

//Convert to country code
BackEnd.GlobalSupport.CountryCode countryCode =
BackEnd.GlobalSupport.CountryCodeDic.GetCountryName(countryByString);
});

Return cases

Success cases

When loaded successfully
statusCode : 200

returnValue : refer to GetReturnValuetoJSON

Error cases

When the country code does not exist
statusCode : 404
errorCode : NotFoundException

GetReturnValuetoJSON

{
country : {S : "KR"}
}