cConversationMarkType2DartType static method

int cConversationMarkType2DartType(
  1. int markType
)

Implementation

static int cConversationMarkType2DartType(int markType) {
  switch (markType) {
    case CConversationMarkType.conversationMarkTypeStar:
      return V2TimConversationMarkType.V2TIM_CONVERSATION_MARK_TYPE_STAR;
    case CConversationMarkType.conversationMarkTypeUnread:
      return V2TimConversationMarkType.V2TIM_CONVERSATION_MARK_TYPE_UNREAD;
    case CConversationMarkType.conversationMarkTypeFold:
      return V2TimConversationMarkType.V2TIM_CONVERSATION_MARK_TYPE_FOLD;
    case CConversationMarkType.conversationMarkTypeHide:
      return V2TimConversationMarkType.V2TIM_CONVERSATION_MARK_TYPE_HIDE;
    default:
      print('error: invalid c conversation mark type');
      return V2TimConversationMarkType.V2TIM_CONVERSATION_MARK_TYPE_STAR;
  }
}