Ejemplo n.º 1
0
    public static void GroupCreate()
    {
        CreateGroupParam param = new CreateGroupParam();

        param.create_group_param_group_id     = "379595063308chat11_chatroom";
        param.create_group_param_group_name   = "name";
        param.create_group_param_group_type   = TIMGroupType.kTIMGroup_ChatRoom;
        param.create_group_param_add_option   = TIMGroupAddOption.kTIMGroupAddOpt_Any;
        param.create_group_param_notification = "create_group_param_notification";
        param.create_group_param_introduction = "create_group_param_introduction";
        param.create_group_param_face_url     = "https://yq.sukeni.com/Logo.jpg";
        TIMResult res = TencentIMSDK.GroupCreate(param, addAsyncDataToConsole);

        Utils.Log(((int)res).ToString());
        addDataToConsole(res);
    }
Ejemplo n.º 2
0
    public void GroupCreateSDK()
    {
        print(GroupID.text);
        print(GroupName.text);
        print(GroupType.value);

        CreateGroupParam param = new CreateGroupParam();

        param.create_group_param_group_id     = GroupID.text;
        param.create_group_param_group_name   = GroupName.text;
        param.create_group_param_group_type   = (TIMGroupType)GroupType.value;
        param.create_group_param_add_option   = TIMGroupAddOption.kTIMGroupAddOpt_Any;
        param.create_group_param_notification = "create_group_param_notification";
        param.create_group_param_introduction = "create_group_param_introduction";
        param.create_group_param_face_url     = "https://yq.sukeni.com/Logo.jpg";
        TIMResult res = TencentIMSDK.GroupCreate(param, Utils.addAsyncStringDataToScreen(GetResult));

        Result.text = Utils.SynchronizeResult(res);
    }