package com.rho.connectionchecking;

import java.util.LinkedList;
import java.util.List;

import com.rhomobile.rhodes.api.IMethodResult;

class ConnectionCheckingSingleton extends ConnectionCheckingSingletonBase implements IConnectionCheckingSingleton {
	
	public static String HOST="192.168.7.129";//DUmmy
	public static String MESSAGE="Establishing Connection";
	public static int TIMEOUT=30000;
	public static int POLLI_INTERVAL=5000;
	public static int PORT=80;
	public static int TRACK_CONNECTION=0;
	public static String BADLINK_URI="";
	
	
	
	
    public ConnectionCheckingSingleton(ConnectionCheckingFactory factory) {
        super(factory);
    }

    List<Object> getIDs() {
        List<Object> ids = new LinkedList<Object>();
        ids.add("SCN1");
        ids.add("SCN2");
        return ids;
    }
    
    @Override
    protected String getInitialDefaultID() {
        return (String)(getIDs().get(0));
    }

	@Override
	public void getHostURL(IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setHostURL(String hostURL, IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void getTrackConnection(IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setTrackConnection(int trackConnection, IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void getTimeout(IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setTimeout(int timeout, IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void getPollInterval(IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setPollInterval(int pollInterval, IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void getMessage(IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void setMessage(String message, IMethodResult result) {
		// TODO Auto-generated method stub
		
	}

    
}
@@ -169,47 +169,9 @@
 ton 
-extends ConnectionCheckingSingletonBase
+ 
  imp
@@ -589,16 +589,18 @@
 %0A       
+//
  super(f
@@ -608,16 +608,30 @@
 ctory);%0A
+    %09super();%0A
     %7D%0A%0A 
@@ -797,334 +797,124 @@
  %0A  
-  @Override%0A    protected String getInitialDefaultID() %7B%0A        return (String)(getIDs().get(0));%0A    %7D%0A%0A%09@Override%0A%09public void getHostURL(IMethodResult result) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void setHostURL(String hostURL, IMethodResult result) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09
+%0A%09@Override%0A%09public void getHostURL(IMethodResult result) %7B%0A%09%09%0A%09%09result.set(ConnectionCheckingSingleton.HOST);%0A%09%7D%0A
 %0A%09
-%7D
 %0A%0A%09@
@@ -984,180 +984,74 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void setTrackConnection(int trackConnection, IMethodResult result) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09
+result.set(ConnectionCheckingSingleton.TRACK_CONNECTION);%0A%09%09%0A%09%7D%0A
 %0A%09
-%7D
 %0A%0A%09@
@@ -1113,166 +1113,64 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void setTimeout(int timeout, IMethodResult result) %7B%0A%09%09// TODO Auto-generated method stub
+result.set(ConnectionCheckingSingleton.TIMEOUT);
 %0A%09%09%0A%09%7D%0A%0A
 %09@Ov
@@ -1157,32 +1157,35 @@
 IMEOUT);%0A%09%09%0A%09%7D%0A%0A
+%09%0A%0A
 %09@Override%0A%09publ
@@ -1238,174 +1238,72 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void setPollInterval(int pollInterval, IMethodResult result) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09
+result.set(ConnectionCheckingSingleton.POLLI_INTERVAL);%0A%09%09%0A%09%7D%0A
 %0A%09
-%7D
 %0A%0A%09@
@@ -1365,171 +1365,72 @@
 %7B%0A%09%09
-// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A%0A%09@Override%0A%09public void setMessage(String message, IMethodResult result) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%7D%0A
+result.set(ConnectionCheckingSingleton.MESSAGE);%0A%09%09%0A%09%7D%0A%0A%09%0A%0A%09
 %0A    %0A%7D
+%0A

Update ConnectionCheckingSingleton.java