-
- All Implemented Interfaces:
-
android.os.Parcelable,java.io.Serializable,java.lang.Cloneable
public class MenigaMerchant implements Serializable, Parcelable, Cloneable
Represents a merchant in the Meniga system.
Copyright 2017 Meniga Iceland Inc.
-
-
Field Summary
Fields Modifier and Type Field Description protected longidprotected longparentIdprotected MenigaMerchantparentMerchantprotected Stringidentifierprotected StringmasterIdentifierprotected StringmerchantCategoryIdentifierprotected StringpublicIdentifierprotected Stringnameprotected StringparentNameprotected MenigaMerchantLocationaddressprotected List<MenigaCategoryScore>categoryScoresprotected List<MenigaMerchant>childMerchantsprotected List<MenigaCategoryScore>detectedCategoryprotected StringdirectoryLinkprotected Stringemailprotected StringoffersLinkprotected Stringtelephoneprotected Stringwebpageprotected MerchantAttributecustomAttributespublic final static Parcelable.Creator<MenigaMerchant>CREATOR
-
Method Summary
Modifier and Type Method Description static voidsetOperator(MenigaMerchantOperations operator)Sets the api operator for doing api calls static Result<MenigaMerchant>fetch(long id)Gets a merchant by id static Result<List<MenigaMerchant>>fetch(List<Long> ids)Gets a merchant by ids intdescribeContents()voidwriteToParcel(Parcel dest, int flags)booleanequals(Object o)inthashCode()longgetId()longgetParentId()MenigaMerchantgetParentMerchant()StringgetIdentifier()StringgetMasterIdentifier()StringgetMerchantCategoryIdentifier()StringgetPublicIdentifier()StringgetName()StringgetParentName()MenigaMerchantLocationgetAddress()List<MenigaCategoryScore>getCategoryScores()List<MenigaMerchant>getChildMerchants()List<MenigaCategoryScore>getDetectedCategory()StringgetDirectoryLink()StringgetEmail()StringgetOffersLink()StringgetTelephone()StringgetWebpage()MerchantAttributegetCustomAttributes()-
-
Method Detail
-
setOperator
static void setOperator(MenigaMerchantOperations operator)
Sets the api operator for doing api calls
- Parameters:
operator- An object that implements the MenigaMerchantOperations interface for carrying out api operations on this class.
-
fetch
static Result<MenigaMerchant> fetch(long id)
Gets a merchant by id
- Parameters:
id- The id of the merchant to retrieve
-
fetch
static Result<List<MenigaMerchant>> fetch(List<Long> ids)
Gets a merchant by ids
- Parameters:
ids- List of ids of the merchants to retrieve
-
describeContents
int describeContents()
-
writeToParcel
void writeToParcel(Parcel dest, int flags)
-
hashCode
int hashCode()
-
getId
long getId()
-
getParentId
long getParentId()
-
getParentMerchant
MenigaMerchant getParentMerchant()
-
getIdentifier
String getIdentifier()
-
getMasterIdentifier
String getMasterIdentifier()
-
getMerchantCategoryIdentifier
String getMerchantCategoryIdentifier()
-
getPublicIdentifier
String getPublicIdentifier()
-
getParentName
String getParentName()
-
getAddress
MenigaMerchantLocation getAddress()
-
getCategoryScores
List<MenigaCategoryScore> getCategoryScores()
-
getChildMerchants
List<MenigaMerchant> getChildMerchants()
-
getDetectedCategory
List<MenigaCategoryScore> getDetectedCategory()
-
getDirectoryLink
String getDirectoryLink()
-
getOffersLink
String getOffersLink()
-
getTelephone
String getTelephone()
-
getWebpage
String getWebpage()
-
getCustomAttributes
MerchantAttribute getCustomAttributes()
-
-
-
-