Package classes

Class Object_Customer

  • All Implemented Interfaces:
    android.os.Parcelable

    public class Object_Customer
    extends Object_BaseObject
    A logged in merchant customer.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface android.os.Parcelable

        android.os.Parcelable.ClassLoaderCreator<T extends java.lang.Object>, android.os.Parcelable.Creator<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static android.os.Parcelable.Creator<Object_Customer> CREATOR  
      • Fields inherited from interface android.os.Parcelable

        CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
    • Constructor Summary

      Constructors 
      Constructor Description
      Object_Customer​(long id, java.lang.String avatar_url, java.lang.String merchant_user_email_address, java.lang.String merchant_user_id, java.lang.String merchant_user_name, java.lang.String role, boolean has_profile, java.lang.String merchant_user_display_name, java.lang.String claim_code, int order)  
    • Field Detail

      • CREATOR

        public static final android.os.Parcelable.Creator<Object_Customer> CREATOR
    • Constructor Detail

      • Object_Customer

        public Object_Customer​(long id,
                               java.lang.String avatar_url,
                               java.lang.String merchant_user_email_address,
                               java.lang.String merchant_user_id,
                               java.lang.String merchant_user_name,
                               java.lang.String role,
                               boolean has_profile,
                               java.lang.String merchant_user_display_name,
                               java.lang.String claim_code,
                               int order)
    • Method Detail

      • getAvatar

        public java.lang.String getAvatar​(int width,
                                          int height,
                                          int quality)
        Get the customer's avatar.
        Parameters:
        width - returns an image with the specified width in pixels.
        height - returns an image with the specified height in pixels.
        quality - returns an image with the specified quality. Scales from 0 - 100.
        Returns:
        the URL of the requested image.
      • getMerchantUserDisplayName

        public java.lang.String getMerchantUserDisplayName()
      • getClaimCode

        public java.lang.String getClaimCode()
      • getEmail

        public java.lang.String getEmail()
      • getMerchantUserId

        public java.lang.String getMerchantUserId()
      • getMerchantUserName

        public java.lang.String getMerchantUserName()
      • getRole

        public java.lang.String getRole()
      • getName

        public java.lang.String getName()
        Get a customer's display name.
        Returns:
        the name as a string.
      • hasProfile

        public boolean hasProfile()
      • filter

        public boolean filter​(java.io.Serializable serializable)
        Overrides:
        filter in class Object_BaseObject
      • getRatingsCollectionId

        public long getRatingsCollectionId()
      • writeToParcel

        public void writeToParcel​(android.os.Parcel dest,
                                  int flags)
        Specified by:
        writeToParcel in interface android.os.Parcelable
        Overrides:
        writeToParcel in class Object_BaseObject