本文整理汇总了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();
}
});
}
示例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();
}
});
}
示例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;
}
示例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;
}
}
示例5: updateBeInvitedText
import com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum; //导入依赖的package包/类
/**
* 更新被邀请人detail显示
* @param type 被邀请人类型
*/
private void updateBeInvitedText(TeamBeInviteModeEnum type) {
inviteeAutenText.setText(TeamHelper.getBeInvitedModeString(type));
}
示例6: updateBeInvitedText
import com.netease.nimlib.sdk.team.constant.TeamBeInviteModeEnum; //导入依赖的package包/类
/**
* 更新被邀请人detail显示
*
* @param type 被邀请人类型
*/
private void updateBeInvitedText(TeamBeInviteModeEnum type) {
inviteeAutenText.setText(TeamHelper.getBeInvitedModeString(type));
}