com.windowsazure.messaging.FcmCredential Maven / Gradle / Ivy
//----------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------
package com.windowsazure.messaging;
import java.util.AbstractMap.SimpleEntry;
import java.util.ArrayList;
import java.util.List;
public final class FcmCredential extends PnsCredential {
private String googleApiKey;
public FcmCredential() {
this(null);
}
public FcmCredential(String googleApiKey) {
super();
this.setGoogleApiKey(googleApiKey);
}
public String getGoogleApiKey() {
return googleApiKey;
}
public void setGoogleApiKey(String googleApiKey) {
this.googleApiKey = googleApiKey;
}
@Override
public List> getProperties() {
ArrayList> result = new ArrayList<>();
result.add(new SimpleEntry<>("GoogleApiKey", getGoogleApiKey()));
return result;
}
@Override
public String getRootTagName() {
return "GcmCredential";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy