added files model
This commit is contained in:
parent
13e69cd09b
commit
bb24254e66
@ -354,7 +354,7 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
|
|||||||
|
|
||||||
userAvatar = hView.findViewById(R.id.userAvatar);
|
userAvatar = hView.findViewById(R.id.userAvatar);
|
||||||
if (!Objects.requireNonNull(userDetails).getAvatar().equals("")) {
|
if (!Objects.requireNonNull(userDetails).getAvatar().equals("")) {
|
||||||
Picasso.get().load(userDetails.getAvatar()).transform(new RoundedTransformation(8, 0)).resize(120, 120).centerCrop().into(userAvatar);
|
Picasso.get().load(userDetails.getAvatar()).transform(new RoundedTransformation(8, 0)).resize(160, 160).centerCrop().into(userAvatar);
|
||||||
} else {
|
} else {
|
||||||
userAvatar.setImageResource(R.mipmap.app_logo_round);
|
userAvatar.setImageResource(R.mipmap.app_logo_round);
|
||||||
}
|
}
|
||||||
|
74
app/src/main/java/org/mian/gitnex/models/Files.java
Normal file
74
app/src/main/java/org/mian/gitnex/models/Files.java
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
package org.mian.gitnex.models;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Author M M Arif
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class Files {
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
private String path;
|
||||||
|
private String sha;
|
||||||
|
private String type;
|
||||||
|
private int size;
|
||||||
|
private String encoding;
|
||||||
|
private String content;
|
||||||
|
private String target;
|
||||||
|
private String url;
|
||||||
|
private String html_url;
|
||||||
|
private String git_url;
|
||||||
|
private String download_url;
|
||||||
|
private String submodule_git_url;
|
||||||
|
|
||||||
|
public String getName() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPath() {
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSha() {
|
||||||
|
return sha;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getSize() {
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getEncoding() {
|
||||||
|
return encoding;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getContent() {
|
||||||
|
return content;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTarget() {
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getUrl() {
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getHtml_url() {
|
||||||
|
return html_url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getGit_url() {
|
||||||
|
return git_url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDownload_url() {
|
||||||
|
return download_url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSubmodule_git_url() {
|
||||||
|
return submodule_git_url;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user