当前位置: 首页>>代码示例>>Java>>正文


Java TeamBeInviteModeEnum类代码示例

本文整理汇总了Java中com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum的典型用法代码示例。如果您正苦于以下问题:Java TeamBeInviteModeEnum类的具体用法?Java TeamBeInviteModeEnum怎么用?Java TeamBeInviteModeEnum使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TeamBeInviteModeEnum类属于com.netease.nimlib.sdk.team.constant包,在下文中一共展示了TeamBeInviteModeEnum类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updateBeInvitedMode

import com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum; //导入依赖的package包/类
/**
 * 更新被邀请人权限
 * @param type 被邀请人类型
 */
private void updateBeInvitedMode(final TeamBeInviteModeEnum type) {
    DialogMaker.showProgressDialog(this, getString(R.string.empty));
    NIMClient.getService(TeamService.class).updateTeam(teamId, TeamFieldEnum.BeInviteMode, type).setCallback(new RequestCallback<Void>() {
        @Override
        public void onSuccess(Void param) {
            DialogMaker.dismissProgressDialog();
            updateBeInvitedText(type);
            Toast.makeText(AdvancedTeamInfoActivity.this, R.string.update_success, Toast.LENGTH_SHORT).show();
        }

        @Override
        public void onFailed(int code) {
            teamInviteeDialog.undoLastSelect(); // 撤销选择
            DialogMaker.dismissProgressDialog();
            Toast.makeText(AdvancedTeamInfoActivity.this, String.format(getString(R.string.update_failed), code), Toast.LENGTH_SHORT).show();
        }

        @Override
        public void onException(Throwable exception) {
            DialogMaker.dismissProgressDialog();
        }
    });
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:28,代码来源:AdvancedTeamInfoActivity.java

示例2: updateBeInvitedMode

import com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum; //导入依赖的package包/类
/**
 * 更新被邀请人权限
 *
 * @param type 被邀请人类型
 */
private void updateBeInvitedMode(final TeamBeInviteModeEnum type) {
    DialogMaker.showProgressDialog(this, getString(R.string.empty));
    NIMClient.getService(TeamService.class).updateTeam(teamId, TeamFieldEnum.BeInviteMode, type).setCallback(new RequestCallback<Void>() {
        @Override
        public void onSuccess(Void param) {
            DialogMaker.dismissProgressDialog();
            updateBeInvitedText(type);
            Toast.makeText(AdvancedTeamInfoActivity.this, R.string.update_success, Toast.LENGTH_SHORT).show();
        }

        @Override
        public void onFailed(int code) {
            teamInviteeDialog.undoLastSelect(); // 撤销选择
            DialogMaker.dismissProgressDialog();
            Toast.makeText(AdvancedTeamInfoActivity.this, String.format(getString(R.string.update_failed), code), Toast.LENGTH_SHORT).show();
        }

        @Override
        public void onException(Throwable exception) {
            DialogMaker.dismissProgressDialog();
        }
    });
}
 
开发者ID:netease-im,项目名称:NIM_Android_UIKit,代码行数:29,代码来源:AdvancedTeamInfoActivity.java

示例3: getBeInvitedModeEnum

import com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum; //导入依赖的package包/类
public static TeamBeInviteModeEnum getBeInvitedModeEnum(String name) {
    TeamBeInviteModeEnum type = null;

    if (name.equals(NimUIKit.getContext().getString(R.string.team_invitee_need_authen))) {
        type = TeamBeInviteModeEnum.NeedAuth;
    } else if (name.equals(NimUIKit.getContext().getString(R.string.team_invitee_not_need_authen))) {
        type = TeamBeInviteModeEnum.NoAuth;
    }

    return type;
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:12,代码来源:TeamHelper.java

示例4: getBeInvitedModeString

import com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum; //导入依赖的package包/类
public static int getBeInvitedModeString(TeamBeInviteModeEnum type) {
    if (type == TeamBeInviteModeEnum.NeedAuth) {
        return R.string.team_invitee_need_authen;
    } else {
        return R.string.team_invitee_not_need_authen;
    }
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:8,代码来源:TeamHelper.java

示例5: updateBeInvitedText

import com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum; //导入依赖的package包/类
/**
 * 更新被邀请人detail显示
 * @param type 被邀请人类型
 */
private void updateBeInvitedText(TeamBeInviteModeEnum type) {
    inviteeAutenText.setText(TeamHelper.getBeInvitedModeString(type));
}
 
开发者ID:newDeepLearing,项目名称:decoy,代码行数:8,代码来源:AdvancedTeamInfoActivity.java

示例6: updateBeInvitedText

import com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum; //导入依赖的package包/类
/**
 * 更新被邀请人detail显示
 *
 * @param type 被邀请人类型
 */
private void updateBeInvitedText(TeamBeInviteModeEnum type) {
    inviteeAutenText.setText(TeamHelper.getBeInvitedModeString(type));
}
 
开发者ID:netease-im,项目名称:NIM_Android_UIKit,代码行数:9,代码来源:AdvancedTeamInfoActivity.java


注:本文中的com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。