| 14792 |
manas |
1 |
/**
|
|
|
2 |
* Copyright 2010-present Facebook.
|
|
|
3 |
*
|
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
5 |
* you may not use this file except in compliance with the License.
|
|
|
6 |
* You may obtain a copy of the License at
|
|
|
7 |
*
|
|
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
9 |
*
|
|
|
10 |
* Unless required by applicable law or agreed to in writing, software
|
|
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
13 |
* See the License for the specific language governing permissions and
|
|
|
14 |
* limitations under the License.
|
|
|
15 |
*/
|
|
|
16 |
|
|
|
17 |
package com.facebook.model;
|
|
|
18 |
|
|
|
19 |
/**
|
|
|
20 |
* Provides a strongly-typed representation of a Location as defined by the Graph API.
|
|
|
21 |
*
|
|
|
22 |
* Note that this interface is intended to be used with GraphObject.Factory
|
|
|
23 |
* and not implemented directly.
|
|
|
24 |
*/
|
|
|
25 |
public interface GraphLocation extends GraphObject {
|
|
|
26 |
/**
|
|
|
27 |
* Returns the street component of the location.
|
|
|
28 |
*
|
|
|
29 |
* @return the street component of the location, or null
|
|
|
30 |
*/
|
|
|
31 |
public String getStreet();
|
|
|
32 |
|
|
|
33 |
/**
|
|
|
34 |
* Sets the street component of the location.
|
|
|
35 |
*
|
|
|
36 |
* @param street
|
|
|
37 |
* the street component of the location, or null
|
|
|
38 |
*/
|
|
|
39 |
public void setStreet(String street);
|
|
|
40 |
|
|
|
41 |
/**
|
|
|
42 |
* Gets the city component of the location.
|
|
|
43 |
*
|
|
|
44 |
* @return the city component of the location
|
|
|
45 |
*/
|
|
|
46 |
public String getCity();
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* Sets the city component of the location.
|
|
|
50 |
*
|
|
|
51 |
* @param city
|
|
|
52 |
* the city component of the location
|
|
|
53 |
*/
|
|
|
54 |
public void setCity(String city);
|
|
|
55 |
|
|
|
56 |
/**
|
|
|
57 |
* Returns the state component of the location.
|
|
|
58 |
*
|
|
|
59 |
* @return the state component of the location
|
|
|
60 |
*/
|
|
|
61 |
public String getState();
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Sets the state component of the location.
|
|
|
65 |
*
|
|
|
66 |
* @param state
|
|
|
67 |
* the state component of the location
|
|
|
68 |
*/
|
|
|
69 |
public void setState(String state);
|
|
|
70 |
|
|
|
71 |
/**
|
|
|
72 |
* Returns the country component of the location.
|
|
|
73 |
*
|
|
|
74 |
* @return the country component of the location
|
|
|
75 |
*/
|
|
|
76 |
public String getCountry();
|
|
|
77 |
|
|
|
78 |
/**
|
|
|
79 |
* Sets the country component of the location
|
|
|
80 |
*
|
|
|
81 |
* @param country
|
|
|
82 |
* the country component of the location
|
|
|
83 |
*/
|
|
|
84 |
public void setCountry(String country);
|
|
|
85 |
|
|
|
86 |
/**
|
|
|
87 |
* Returns the postal code component of the location.
|
|
|
88 |
*
|
|
|
89 |
* @return the postal code component of the location
|
|
|
90 |
*/
|
|
|
91 |
public String getZip();
|
|
|
92 |
|
|
|
93 |
/**
|
|
|
94 |
* Sets the postal code component of the location.
|
|
|
95 |
*
|
|
|
96 |
* @param zip
|
|
|
97 |
* the postal code component of the location
|
|
|
98 |
*/
|
|
|
99 |
public void setZip(String zip);
|
|
|
100 |
|
|
|
101 |
/**
|
|
|
102 |
* Returns the latitude component of the location.
|
|
|
103 |
*
|
|
|
104 |
* @return the latitude component of the location
|
|
|
105 |
*/
|
|
|
106 |
public double getLatitude();
|
|
|
107 |
|
|
|
108 |
/**
|
|
|
109 |
* Sets the latitude component of the location.
|
|
|
110 |
*
|
|
|
111 |
* @param latitude
|
|
|
112 |
* the latitude component of the location
|
|
|
113 |
*/
|
|
|
114 |
public void setLatitude(double latitude);
|
|
|
115 |
|
|
|
116 |
/**
|
|
|
117 |
* Returns the longitude component of the location.
|
|
|
118 |
*
|
|
|
119 |
* @return the longitude component of the location
|
|
|
120 |
*/
|
|
|
121 |
public double getLongitude();
|
|
|
122 |
|
|
|
123 |
/**
|
|
|
124 |
* Sets the longitude component of the location.
|
|
|
125 |
*
|
|
|
126 |
* @param longitude
|
|
|
127 |
* the longitude component of the location
|
|
|
128 |
*/
|
|
|
129 |
public void setLongitude(double longitude);
|
|
|
130 |
}
|