create static method

JoinGroupQuery create(
  1. String groupId
)

Implementation

static JoinGroupQuery create(String groupId) {
  UpdateGroupMembersQuery query = UpdateGroupMembersQuery.create(groupId,
      UserIdList.create(['GETSOCIAL_CURRENT_USER_PLACEHOLDER_42_42']));
  query.role = Role.member;
  query.status = MemberStatus.approvalPending;
  return JoinGroupQuery(query);
}