using System; using System.Collections.Generic; using System.Text; namespace Plane.CommunicationManagement { public class CommWriteMissinState { public CommWriteMissinState(bool sendAchieved) { this.SendAchieved = sendAchieved; } public int StateReturn = 0; public int ErrorCode = 0; public bool SendAchieved = false; public bool WriteSucceed = false; public bool IsFailed { get { return StateReturn != 0 || ErrorCode != 0 || !SendAchieved || !WriteSucceed; } } } }