getNotifyStateValue static method

int? getNotifyStateValue(
  1. NotifyState? notifyState
)

Implementation

static int? getNotifyStateValue(NotifyState? notifyState) {
  switch (notifyState) {
    case NotifyState.CLIENT_STORED:
      return 0;
    case NotifyState.CLIENT_SENT:
      return 1;
    case NotifyState.CLIENT_UP_TO_DATE:
      return 50;
    case NotifyState.CLIENT_OUT_OF_DATE:
      return 51;
  }
  return null;
}