• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java GithubLogin类的典型用法和代码示例

java 1次浏览

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

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

示例1: reportIssue

点赞 3

import com.heinrichreimersoftware.androidissuereporter.model.github.GithubLogin; //导入依赖的package包/类
private void reportIssue() {

        if (!validateInput()) return;

        if (optionUseAccount.isChecked()) {
            String username = inputUsername.getText().toString();
            String password = inputPassword.getText().toString();
            sendBugReport(new GithubLogin(username, password), null);
        } else {
            if (TextUtils.isEmpty(token))
                throw new IllegalStateException("You must provide a GitHub API Token.");

            String email = null;
            if (!TextUtils.isEmpty(inputEmail.getText()) &&
                    EMAIL_ADDRESS.matcher(inputEmail.getText().toString()).matches()) {
                email = inputEmail.getText().toString();
            }

            sendBugReport(new GithubLogin(token), email);
        }
    }
 

开发者ID:feifadaima,
项目名称:https-github.com-hyb1996-NoRootScriptDroid,
代码行数:22,
代码来源:AbstractIssueReporterActivity.java

示例2: ReportIssueTask

点赞 2

import com.heinrichreimersoftware.androidissuereporter.model.github.GithubLogin; //导入依赖的package包/类
private ReportIssueTask(Activity activity, Report report, GithubTarget target,
                        GithubLogin login) {
    super(activity);
    this.report = report;
    this.target = target;
    this.login = login;
}
 

开发者ID:feifadaima,
项目名称:https-github.com-hyb1996-NoRootScriptDroid,
代码行数:8,
代码来源:AbstractIssueReporterActivity.java

示例3: sendBugReport

点赞 2

import com.heinrichreimersoftware.androidissuereporter.model.github.GithubLogin; //导入依赖的package包/类
private void sendBugReport(GithubLogin login, String email) {
    if (!validateInput()) return;

    String bugTitle = inputTitle.getText().toString();
    String bugDescription = inputDescription.getText().toString();

    DeviceInfo deviceInfo = new DeviceInfo(this);

    ExtraInfo extraInfo = new ExtraInfo();
    onSaveExtraInfo(extraInfo);

    Report report = new Report(bugTitle, bugDescription, deviceInfo, extraInfo, email);
    GithubTarget target = getTarget();

    report(this, report, target, login);
}
 

开发者ID:feifadaima,
项目名称:https-github.com-hyb1996-NoRootScriptDroid,
代码行数:17,
代码来源:AbstractIssueReporterActivity.java

示例4: sendBugReport

点赞 2

import com.heinrichreimersoftware.androidissuereporter.model.github.GithubLogin; //导入依赖的package包/类
private void sendBugReport(GithubLogin login, String email) {
    if (!validateInput()) return;

    String bugTitle = inputTitle.getText().toString();
    String bugDescription = inputDescription.getText().toString();

    DeviceInfo deviceInfo = new DeviceInfo(this);

    ExtraInfo extraInfo = new ExtraInfo();
    onSaveExtraInfo(extraInfo);

    Report report = new Report(bugTitle, bugDescription, deviceInfo, extraInfo, email);
    GithubTarget target = getTarget();

    ReportIssueTask.report(this, report, target, login);
}
 

开发者ID:rosenpin-deprecated,
项目名称:More-For-GO,
代码行数:17,
代码来源:IssueReporterActivity.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)