Returns the master profile and a list of joined devices.
The Circle ID
Whether the action was successful or not, the Member ID, and the list of Devices associated with that Member ID’s account.
public async Task<WhoAmIReply> WhoAmI(WhoAmIRequest request)
public class WhoAmIRequest
{
public string CircleId;
}
public class WhoAmIReply
{
public ReturnStatus Status;
public List<ProfileInfo> Profiles;
public string MemberId;
public List<DeviceInfo> Devices;
}
public void WhoAmI()
{
WhoAmIRequest request = new WhoAmIRequest();
WhoAmIReply reply = _circle.WhoAmI(request);
if (reply.Status.Result)
{
Console.WriteLine(reply.MemberId);
foreach (DeviceInfo di in reply.Devices)
{
Console.WriteLine($"{di.DeviceId} - {di.DeviceName} - {di.Platform}");
}
}
else
Console.WriteLine(reply.Status.Message);
}