createWithUserId static method

ChatId createWithUserId(
  1. UserId userId
)

Create a new ChatId instance with user id.

userId User Id.

Implementation

static ChatId createWithUserId(UserId userId) {
  ChatId instance = new ChatId();
  instance._userId = userId;
  return instance;
}