using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LSFE.MobApp.Models { public class SyncResult { public int TotalCount { get; set; } public int SuccessCount { get; set; } public int FailCount => TotalCount - SuccessCount; public List FailedIds { get; set; } = new List(); public bool AllSucceeded => FailCount == 0; public double SuccessRate => TotalCount > 0 ? (double)SuccessCount / TotalCount * 100 : 0; } }