Skip to main content
Version: SDK-5.9.6

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
message : Success returnValue : refer to GetReturnValuetoJSON

Error cases

When the country code does not exist
statusCode : 404
errorCode : NotFoundException
message : country not found, country cannot be found

GetReturnValuetoJSON

{
country : {S : "KR"}
}