private static bool IsNewOrPreliminaryComments(CaseState state) { return state.StateKind == CaseStateKind.New || state.StateKind == CaseStateKind.PriliminaryComments; }
private ComplaintComments.StatusKind GetStatus(CaseState status) { if (status.StateKind == CaseStateKind.New || status.StateKind == CaseStateKind.PriliminaryComments) return ComplaintComments.StatusKind.PreliminaryComments; if (status.StateKind == CaseStateKind.PriliminaryDecision) return ComplaintComments.StatusKind.PreliminaryDecisionComments; if (status.StateKind == CaseStateKind.WaitingForPartyComments) return ComplaintComments.StatusKind.PreliminaryDecisionWaiting; if (status.StateKind == CaseStateKind.FinalDecision) return ComplaintComments.StatusKind.FinalDecisionComments; if (status.StateKind == CaseStateKind.Locked) return ComplaintComments.StatusKind.FinalDecisionLocked; return ComplaintComments.StatusKind.Complete; }