예제 #1
0
 public Json.Session MakeSession(CurrentSession currentSession, CurrentSpeaker currentSpeaker)
 {
     Json.Session mySession = new Json.Session();
     mySession.session          = currentSession.Title;
     mySession.time             = currentSession.SessionTime;
     mySession.desc             = currentSession.Description;
     mySession.room             = currentSession.Room;
     mySession.speaker          = new Json.Speaker();
     mySession.speaker.name     = currentSpeaker.SpeakerName;
     mySession.speaker.location = currentSpeaker.CityState;
     mySession.speaker.bio      = currentSpeaker.SpeakerBio;
     mySession.speaker.img      = currentSpeaker.HeadshotFile;
     mySession.speaker.web      = currentSpeaker.WebSite;
     return(mySession);
 }
예제 #2
0
 public Json.Session MakeSession(CurrentSession currentSession, CurrentSpeaker currentSpeaker)
 {
     Json.Session mySession = new Json.Session();
     mySession.session = currentSession.Title;
     mySession.time = currentSession.SessionTime;
     mySession.desc = currentSession.Description;
     mySession.room = currentSession.Room;
     mySession.speaker = new Json.Speaker();
     mySession.speaker.name = currentSpeaker.SpeakerName;
     mySession.speaker.location = currentSpeaker.CityState;
     mySession.speaker.bio = currentSpeaker.SpeakerBio;
     mySession.speaker.img = currentSpeaker.HeadshotFile;
     mySession.speaker.web = currentSpeaker.WebSite;
     return mySession;
 }