20 lines
564 B
C#
20 lines
564 B
C#
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<Guid> FailedIds { get; set; } = new List<Guid>();
|
|
|
|
public bool AllSucceeded => FailCount == 0;
|
|
public double SuccessRate => TotalCount > 0 ? (double)SuccessCount / TotalCount * 100 : 0;
|
|
}
|
|
}
|