package main;

import file.File;
import model.GHAccount;
import org.kohsuke.github.GHIssueState;

/**
 * @author kamontat
 * @version 1.0
 * @since 1/25/2017 AD - 8:25 PM
 */
public class Main {
	public static void main(String[] args) {
		String repository_name = "GuessingGame";
		
		for (String name : File.getGithubName()) {
			final GHAccount account = new GHAccount(name);
			System.out.println(account.user.url);
			System.out.println(account.getIssueCSV(repository_name, GHIssueState.OPEN));
		}
		
		// cache test
//		Cache.loadCache().setFileName("hello-world").saveToFile(GithubToken.getGitToken("a", "asdffdsa"));
//		GithubToken x = Cache.loadCache().setFileName("hello-world").loadFromFile(GithubToken.class);
//		System.out.println(x);
		
		// encryption test
//		String pass = "kamontat";
//		String text = "I fuck you";
//		Encryption encryption = Encryption.get(pass);
//
//		String code = encryption.encode(pass, text);
//		System.out.println(text.equals(code));
//
//		String text2 = encryption.decode(pass, code);
//		System.out.println(text.equals(text2));
	}
}

@@ -501,583 +501,9 @@
 %09%7D%0A%09
-%09%0A%09%09// cache test%0A//%09%09Cache.loadCache().setFileName(%22hello-world%22).saveToFile(GithubToken.getGitToken(%22a%22, %22asdffdsa%22));%0A//%09%09GithubToken x = Cache.loadCache().setFileName(%22hello-world%22).loadFromFile(GithubToken.class);%0A//%09%09System.out.println(x);%0A%09%09%0A%09%09// encryption test%0A//%09%09String pass = %22kamontat%22;%0A//%09%09String text = %22I fuck you%22;%0A//%09%09Encryption encryption = Encryption.get(pass);%0A//%0A//%09%09String code = encryption.encode(pass, text);%0A//%09%09System.out.println(text.equals(code));%0A//%0A//%09%09String text2 = encryption.decode(pass, code);%0A//%09%09System.out.println(text.equals(text2));%0A%09
+%7D%0A
 %7D%0A
-%7D
 %0A

remove test in main