Android Open Source - android-player-samples Chooser Response






From Project

Back to project page android-player-samples.

License

The source code is released under:

Apache License

If you think the Android project android-player-samples listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.brightcove.player.samples.ais.webview.basic;
//w  w w .  ja v a2  s  .com
import com.google.gson.annotations.SerializedName;

import java.util.Map;

/**
 * JSON response class for the /chooser/ REST API call.
 * Note: this is not a completed class. It has been implemented
 * enough for the purposes of this sample app.
 *
 * @author bhnath (Billy Hnath)
 */
public class ChooserResponse {

    @SerializedName("grouped_idps")
    private Map<String, String> groupedIdps;

    @SerializedName("_type")
    private String type;

    @SerializedName("authenticated")
    private boolean authenticated;

    @SerializedName("possible_idps")
    private Map<String, IdentityProvider> possibleIdps;

    @SerializedName("footprints")
    private Map<String, String> footprints;

    @SerializedName("platform_id")
    private String platformId;

    @SerializedName("preferred_idps")
    private Map<String, String> preferredIdps;

    public String getType() {
        return type;
    }
    public boolean getAuthenticated() {
        return authenticated;
    }

    public Map<String, IdentityProvider> getPossibleIdps() {
        return possibleIdps;
    }

    public class IdentityProvider {

        @SerializedName("url")
        private String url;

        @SerializedName("logos")
        private Map<String, String> logos;

        @SerializedName("display_name")
        private String displayName;

        @SerializedName("name")
        private String name;

        public String getUrl() {
            return url;
        }
        public Map<String, String> getLogos() {
            return logos;
        }
        public String getDisplayName() {
            return displayName;
        }
        public String getName() {
            return name;
        }
    }
}




Java Source Code List

com.brightcove.player.samples.adobepass.webview.basic.MainActivity.java
com.brightcove.player.samples.adobepass.webview.basic.WebViewActivity.java
com.brightcove.player.samples.ais.webview.basic.ChooserResponse.java
com.brightcove.player.samples.ais.webview.basic.MainActivity.java
com.brightcove.player.samples.ais.webview.basic.ResourceAccessResponse.java
com.brightcove.player.samples.ais.webview.basic.WebViewActivity.java
com.brightcove.player.samples.captioning.dfxp.MainActivityTest.java
com.brightcove.player.samples.cast.basic.GoogleCastSampleFragment.java
com.brightcove.player.samples.cast.basic.MainActivity.java
com.brightcove.player.samples.freewheel.basic.MainActivity.java
com.brightcove.player.samples.freewheel.hls.MainActivity.java
com.brightcove.player.samples.freewheelwidevine.basic.MainActivity.java
com.brightcove.player.samples.hls.basic.MainActivity.java
com.brightcove.player.samples.hls.id3.MainActivity.java
com.brightcove.player.samples.ima.adrules.MainActivity.java
com.brightcove.player.samples.ima.basic.MainActivity.java
com.brightcove.player.samples.ima.hls.MainActivity.java
com.brightcove.player.samples.imawidevine.adrules.MainActivity.java
com.brightcove.player.samples.imawidevine.basic.MainActivity.java
com.brightcove.player.samples.omniture.basic.MainActivity.java
com.brightcove.player.samples.onceux.basic.MainActivity.java
com.brightcove.player.samples.texture.basic.MainActivity.java
com.brightcove.player.samples.webvtt.MainActivity.java
com.brightcove.player.samples.widevine.basic.MainActivity.java
com.brightcove.samples.android.bundledvideo.basic.MainActivity.java
com.brightcove.samples.android.closedcaptioning.dfxp.MainActivity.java