using Newtonsoft.Json;
using System.Collections.Generic;
namespace CorePush.Google
{
public class FcmResponse
{
[JsonProperty("multicast_id")]
public string MulticastId { get; set; }
[JsonProperty("canonical_ids")]
public int CanonicalIds { get; set; }
///
/// Success count
///
public int Success { get; set; }
///
/// Failure count
///
public int Failure { get; set; }
///
/// Results
///
public List Results { get; set; }
///
/// Returns value indicating notification sent success or failure
///
public bool IsSuccess()
{
return Success > 0 && Failure == 0;
}
}
}