getChangeType static method

ChangeType? getChangeType(
  1. int changeValue
)

Implementation

static ChangeType? getChangeType(int changeValue) {
  switch (changeValue) {
    case 0:
      return ChangeType.DISLIKE;
    case 1:
      return ChangeType.LIKE;
    case 2:
      return ChangeType.INCREMENT;
    case 3:
      return ChangeType.DECREMENT;
    case 5:
      return ChangeType.NOTIFY;
    case 9:
      return ChangeType.USER_SETTING;
  }
  return null;
}