Skip to content

Commit 9468f9f

Browse files
authored
added 2 new methods
1 parent 7d9cee5 commit 9468f9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EasyInsta/src/main/java/com/xcoder/easyinsta/Instagram.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public void run() {
144144
* @param directory The directory on the filesystem where the cache should be saved.
145145
* @throws InstagramException - if the provided file is not a directory or is not writable.
146146
*/
147-
private static void saveInstance(File directory) throws InstagramException {
147+
public void saveInstance(File directory) throws InstagramException {
148148
try {
149149
if (directory.isDirectory())
150150
client.serialize(new File(directory,"object"),new File(directory,"cookie"));
@@ -155,7 +155,7 @@ private static void saveInstance(File directory) throws InstagramException {
155155
}
156156
}
157157

158-
private static Instagram loadInstance(File directory){
158+
public static Instagram loadInstance(File directory){
159159
try {
160160
if (directory.isDirectory())
161161
return new Instagram(IGClient.deserialize(new File(directory,"object"),new File(directory,"cookie")));

0 commit comments

Comments
 (0)