//this function gets the list of restaurants from the server public static String RestaurantListGet(string ballotId) { //get the list of resturants for the ballot String json = Inet.RestaurantsBallotGet(ballotId); //serialize them into a data object return(json); }
//this function creates a new ballot for the datetime specified or gets the GUID of a previously created ballot public static String BallotCreate(String datetime) { //get voters String voters = VotersGet(); voters = voters.Replace("%endtime%", datetime); //send create request String bid = Inet.BallotCreate(voters); //String bid = Inet.RestaurantsAllGet(); return(bid); }