-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfile.java
More file actions
33 lines (28 loc) · 764 Bytes
/
Profile.java
File metadata and controls
33 lines (28 loc) · 764 Bytes
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
33
package com.example.yusuph.andela;
import static android.R.attr.name;
/**
* Created by Yusuph on 13/09/2017.
*/
///create a base class to hold the informations about the profile
public class Profile {
//profile variables
private String username;
private String img;
private String url;
//create a constructor
public Profile(String username, String img, String url){
this.img = img;
this.url = url;
this.username = username;
}
//create a getters method so that it can be use to fetch informations
public String getUsername(){
return username;
}
public String getImage(){
return img;
}
public String getUrl(){
return url;
}
}