This source file includes following definitions.
- JNINamespace
- CalledByNative
- getExpirationMonth
- CalledByNative
- getExpirationYear
- CalledByNative
- getPan
- CalledByNative
- getCvn
- CalledByNative
- getName
- CalledByNative
- getPhoneNumber
- CalledByNative
- getAddress1
- CalledByNative
- getAddress2
- CalledByNative
- getCity
- CalledByNative
- getState
- CalledByNative
- getPostalCode
- CalledByNative
- getCountryCode
- CalledByNative
- getEmail
- CalledByNative
- getGoogleTransactionId
- CalledByNative
- getCard
- CalledByNative
- getBillingAddress
- CalledByNative
- getShippingAddress
package org.chromium.chrome.browser.autofill;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
@JNINamespace("autofill")
public class AutofillDialogResult {
public static class ResultCard {
private final int mExpirationMonth;
private final int mExpirationYear;
private final String mPan;
private final String mCvn;
public ResultCard(int expirationMonth, int expirationYear, String pan, String cvn) {
mExpirationMonth = expirationMonth;
mExpirationYear = expirationYear;
mPan = pan;
mCvn = cvn;
}
@CalledByNative("ResultCard")
public int getExpirationMonth() {
return mExpirationMonth;
}
@CalledByNative("ResultCard")
public int getExpirationYear() {
return mExpirationYear;
}
@CalledByNative("ResultCard")
public String getPan() {
return mPan;
}
@CalledByNative("ResultCard")
public String getCvn() {
return mCvn;
}
}
public static class ResultAddress {
private final String mName;
private final String mPhoneNumber;
private final String mAddress1;
private final String mAddress2;
private final String mCity;
private final String mState;
private final String mPostalCode;
private final String mCountryCode;
public ResultAddress(
String name, String phoneNumber,
String address1, String address2,
String city, String state, String postalCode,
String countryCode) {
mName = name;
mPhoneNumber = phoneNumber;
mAddress1 = address1;
mAddress2 = address2;
mCity = city;
mState = state;
mPostalCode = postalCode;
mCountryCode = countryCode;
}
@CalledByNative("ResultAddress")
public String getName() {
return mName;
}
@CalledByNative("ResultAddress")
public String getPhoneNumber() {
return mPhoneNumber;
}
@CalledByNative("ResultAddress")
public String getAddress1() {
return mAddress1;
}
@CalledByNative("ResultAddress")
public String getAddress2() {
return mAddress2;
}
@CalledByNative("ResultAddress")
public String getCity() {
return mCity;
}
@CalledByNative("ResultAddress")
public String getState() {
return mState;
}
@CalledByNative("ResultAddress")
public String getPostalCode() {
return mPostalCode;
}
@CalledByNative("ResultAddress")
public String getCountryCode() {
return mCountryCode;
}
}
public static class ResultWallet {
private final String mEmail;
private final String mGoogleTransactionId;
private final ResultCard mCard;
private final ResultAddress mBillingAddress;
private final ResultAddress mShippingAddress;
public ResultWallet(
String email, String googleTransactionId,
ResultCard card, ResultAddress billingAddress, ResultAddress shippingAddress) {
mEmail = email;
mGoogleTransactionId = googleTransactionId;
mCard = card;
mBillingAddress = billingAddress;
mShippingAddress = shippingAddress;
}
@CalledByNative("ResultWallet")
public String getEmail() {
return mEmail;
}
@CalledByNative("ResultWallet")
public String getGoogleTransactionId() {
return mGoogleTransactionId;
}
@CalledByNative("ResultWallet")
public ResultCard getCard() {
return mCard;
}
@CalledByNative("ResultWallet")
public ResultAddress getBillingAddress() {
return mBillingAddress;
}
@CalledByNative("ResultWallet")
public ResultAddress getShippingAddress() {
return mShippingAddress;
}
}
}