Exemple #1
0
 private static ActivityData getActivityAsData(Activity act)
 {
     ActivityData aData = new ActivityData();
     aData.ActivityName = act.ActivityName;
     aData.expID = act.expID;
     aData.id = act.id;
     aData.isMainActivity = act.isMainActivity;
     aData.RoomId = act.RoomId;
     aData.Type = act.Type;
     return aData;
 }
Exemple #2
0
 public static Activity getActivityFromData(ActivityData activityData)
 {
     if (activityData == null)
         return null;
     Activity a = new Activity();
     a.ActivityName = activityData.ActivityName;
     a.expID = activityData.expID;
     a.id = activityData.id;
     a.isMainActivity = activityData.isMainActivity;
     a.RoomId = activityData.RoomId;
     a.Type = activityData.Type;
     return a;
 }