Sets the sync status for a Circle to Foreground, enabling faster file sync and minimal delay in real-time message delivery.
The Circle you wish to apply this to.
Whether it was successful or not.
rpc Foreground (ForegroundRequest) returns (ForegroundReply);
message ForegroundRequest {
string CircleId = 1;
}
message ForegroundReply {
ReturnStatus Status = 1;
}
public class ForegroundRequest
{
public string CircleId;
}
public class ForegroundReply
{
public ReturnStatus Status;
}
public void SetForegroundSync(string circleId)
{
ForegroundRequest request = new ForegroundRequest() {CircleId = circleId};
ForegroundReply reply = _circle.Foreground(request);
Console.WriteLine(reply.Status.Message);
}