summaryrefslogtreecommitdiffstats
path: root/info_lookup/src/com/cyanogen/lookup/phonenumber/response/LookupResponse.java
blob: 1cb51c2b2cfa83c8fc863220a5730c18ee66cdb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package com.cyanogen.lookup.phonenumber.response;

import android.graphics.drawable.Drawable;

/**
 * ADT to store the result of a phone number lookup
 */
public class LookupResponse {
    public String mProviderName;
    public String mName;
    public String mNumber;
    public String mCity;
    public String mCountry;
    public String mAddress;
    public String mPhotoUrl;
    public int mSpamCount;

    public Drawable mAttributionLogo;

    @Override
    public String toString() {
        return String.format("{ providerName = %s, name = %s, number = %s, city = %s, country = %s, address = %s, photo-url : %s, spam-count = %d}",
                mProviderName != null ? mProviderName : "null" ,
                mName != null ? mName : "null" ,
                mNumber != null ? mNumber : "null" ,
                mCity != null ? mCity : "null" ,
                mCountry != null ? mCountry : "null" ,
                mAddress != null ? mAddress : "null" ,
                mPhotoUrl != null ? mPhotoUrl : "null" ,
                mSpamCount );
    }
}