예제 #1
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Individual._correspondenceFactType,
         new Individual.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Individual._correspondenceFactType }));
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.QueryMessageBoards.QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.QueryIsToastNotificationEnabled.QueryDefinition);
     community.AddType(
         Share._correspondenceFactType,
         new Share.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Share._correspondenceFactType }));
     community.AddType(
         MessageBoard._correspondenceFactType,
         new MessageBoard.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { MessageBoard._correspondenceFactType }));
     community.AddQuery(
         MessageBoard._correspondenceFactType,
         MessageBoard.QueryMessages.QueryDefinition);
     community.AddType(
         Domain._correspondenceFactType,
         new Domain.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Domain._correspondenceFactType }));
     community.AddType(
         Message._correspondenceFactType,
         new Message.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Message._correspondenceFactType }));
     community.AddType(
         EnableToastNotification._correspondenceFactType,
         new EnableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { EnableToastNotification._correspondenceFactType }));
     community.AddQuery(
         EnableToastNotification._correspondenceFactType,
         EnableToastNotification.QueryIsDisabled.QueryDefinition);
     community.AddType(
         DisableToastNotification._correspondenceFactType,
         new DisableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { DisableToastNotification._correspondenceFactType }));
 }
예제 #2
0
 public void RegisterAllFactTypes(Community community, IDictionary <Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Individual._correspondenceFactType,
         new Individual.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Individual._correspondenceFactType
     }));
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryName().QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryTunes().QueryDefinition);
     community.AddType(
         Individual__name._correspondenceFactType,
         new Individual__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Individual__name._correspondenceFactType
     }));
     community.AddQuery(
         Individual__name._correspondenceFactType,
         Individual__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Tune._correspondenceFactType,
         new Tune.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Tune._correspondenceFactType
     }));
     community.AddQuery(
         Tune._correspondenceFactType,
         Tune.GetQueryIndividuals().QueryDefinition);
     community.AddType(
         Like._correspondenceFactType,
         new Like.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Like._correspondenceFactType
     }));
 }
예제 #3
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Individual._correspondenceFactType,
         new Individual.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Individual._correspondenceFactType }));
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryMessageBoards().QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryShares().QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryIsToastNotificationEnabled().QueryDefinition);
     community.AddType(
         Share._correspondenceFactType,
         new Share.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Share._correspondenceFactType }));
     community.AddQuery(
         Share._correspondenceFactType,
         Share.GetQueryIsDeleted().QueryDefinition);
     community.AddUnpublisher(
         Share.GetRoleIndividual(),
         Condition.WhereIsEmpty(Share.GetQueryIsDeleted())
         );
     community.AddType(
         ShareDelete._correspondenceFactType,
         new ShareDelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ShareDelete._correspondenceFactType }));
     community.AddType(
         MessageBoard._correspondenceFactType,
         new MessageBoard.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { MessageBoard._correspondenceFactType }));
     community.AddQuery(
         MessageBoard._correspondenceFactType,
         MessageBoard.GetQueryMessages().QueryDefinition);
     community.AddType(
         Domain._correspondenceFactType,
         new Domain.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Domain._correspondenceFactType }));
     community.AddType(
         Message._correspondenceFactType,
         new Message.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Message._correspondenceFactType }));
     community.AddType(
         EnableToastNotification._correspondenceFactType,
         new EnableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { EnableToastNotification._correspondenceFactType }));
     community.AddQuery(
         EnableToastNotification._correspondenceFactType,
         EnableToastNotification.GetQueryIsDisabled().QueryDefinition);
     community.AddType(
         DisableToastNotification._correspondenceFactType,
         new DisableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { DisableToastNotification._correspondenceFactType }));
 }
예제 #4
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Individual._correspondenceFactType,
         new Individual.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Individual._correspondenceFactType }));
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryAttendees().QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryIsToastNotificationEnabled().QueryDefinition);
     community.AddType(
         EnableToastNotification._correspondenceFactType,
         new EnableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { EnableToastNotification._correspondenceFactType }));
     community.AddQuery(
         EnableToastNotification._correspondenceFactType,
         EnableToastNotification.GetQueryIsDisabled().QueryDefinition);
     community.AddType(
         DisableToastNotification._correspondenceFactType,
         new DisableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { DisableToastNotification._correspondenceFactType }));
     community.AddType(
         Conference._correspondenceFactType,
         new Conference.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Conference._correspondenceFactType }));
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryName().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryConferenceSurvey().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryMapUrl().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryDays().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryAllTracks().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryTracks().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQuerySessions().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryUnscheduledSessions().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQuerySpeakers().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryNotices().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryCurrentSessionSurveys().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryAllSessionSurveys().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryRooms().QueryDefinition);
     community.AddType(
         Conference__name._correspondenceFactType,
         new Conference__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Conference__name._correspondenceFactType }));
     community.AddQuery(
         Conference__name._correspondenceFactType,
         Conference__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Conference__conferenceSurvey._correspondenceFactType,
         new Conference__conferenceSurvey.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Conference__conferenceSurvey._correspondenceFactType }));
     community.AddQuery(
         Conference__conferenceSurvey._correspondenceFactType,
         Conference__conferenceSurvey.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Conference__mapUrl._correspondenceFactType,
         new Conference__mapUrl.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Conference__mapUrl._correspondenceFactType }));
     community.AddQuery(
         Conference__mapUrl._correspondenceFactType,
         Conference__mapUrl.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceSessionSurvey._correspondenceFactType,
         new ConferenceSessionSurvey.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceSessionSurvey._correspondenceFactType }));
     community.AddQuery(
         ConferenceSessionSurvey._correspondenceFactType,
         ConferenceSessionSurvey.GetQueryIsCurrent().QueryDefinition);
     community.AddQuery(
         ConferenceSessionSurvey._correspondenceFactType,
         ConferenceSessionSurvey.GetQueryCompleted().QueryDefinition);
     community.AddType(
         Attendee._correspondenceFactType,
         new Attendee.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Attendee._correspondenceFactType }));
     community.AddQuery(
         Attendee._correspondenceFactType,
         Attendee.GetQueryCurrentSchedules().QueryDefinition);
     community.AddQuery(
         Attendee._correspondenceFactType,
         Attendee.GetQueryAllSchedules().QueryDefinition);
     community.AddQuery(
         Attendee._correspondenceFactType,
         Attendee.GetQueryScheduledSessions().QueryDefinition);
     community.AddQuery(
         Attendee._correspondenceFactType,
         Attendee.GetQueryScheduledSessionPlaces().QueryDefinition);
     community.AddType(
         IndividualAttendee._correspondenceFactType,
         new IndividualAttendee.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { IndividualAttendee._correspondenceFactType }));
     community.AddType(
         Day._correspondenceFactType,
         new Day.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Day._correspondenceFactType }));
     community.AddQuery(
         Day._correspondenceFactType,
         Day.GetQueryTimes().QueryDefinition);
     community.AddQuery(
         Day._correspondenceFactType,
         Day.GetQueryHasTimes().QueryDefinition);
     community.AddType(
         Time._correspondenceFactType,
         new Time.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Time._correspondenceFactType }));
     community.AddQuery(
         Time._correspondenceFactType,
         Time.GetQueryAvailableSessions().QueryDefinition);
     community.AddQuery(
         Time._correspondenceFactType,
         Time.GetQueryDeletes().QueryDefinition);
     community.AddQuery(
         Time._correspondenceFactType,
         Time.GetQueryIsDeleted().QueryDefinition);
     community.AddType(
         TimeDelete._correspondenceFactType,
         new TimeDelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { TimeDelete._correspondenceFactType }));
     community.AddQuery(
         TimeDelete._correspondenceFactType,
         TimeDelete.GetQueryIsUndeleted().QueryDefinition);
     community.AddType(
         TimeUndelete._correspondenceFactType,
         new TimeUndelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { TimeUndelete._correspondenceFactType }));
     community.AddType(
         Slot._correspondenceFactType,
         new Slot.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Slot._correspondenceFactType }));
     community.AddQuery(
         Slot._correspondenceFactType,
         Slot.GetQueryCurrentSchedules().QueryDefinition);
     community.AddType(
         Room._correspondenceFactType,
         new Room.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Room._correspondenceFactType }));
     community.AddQuery(
         Room._correspondenceFactType,
         Room.GetQueryRoomNumber().QueryDefinition);
     community.AddType(
         Room__roomNumber._correspondenceFactType,
         new Room__roomNumber.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Room__roomNumber._correspondenceFactType }));
     community.AddQuery(
         Room__roomNumber._correspondenceFactType,
         Room__roomNumber.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Track._correspondenceFactType,
         new Track.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Track._correspondenceFactType }));
     community.AddQuery(
         Track._correspondenceFactType,
         Track.GetQueryCurrentSessionPlaces().QueryDefinition);
     community.AddQuery(
         Track._correspondenceFactType,
         Track.GetQueryHasSessions().QueryDefinition);
     community.AddType(
         Speaker._correspondenceFactType,
         new Speaker.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker._correspondenceFactType }));
     community.AddQuery(
         Speaker._correspondenceFactType,
         Speaker.GetQueryImageUrl().QueryDefinition);
     community.AddQuery(
         Speaker._correspondenceFactType,
         Speaker.GetQueryContact().QueryDefinition);
     community.AddQuery(
         Speaker._correspondenceFactType,
         Speaker.GetQueryBio().QueryDefinition);
     community.AddQuery(
         Speaker._correspondenceFactType,
         Speaker.GetQueryAvailableSessions().QueryDefinition);
     community.AddType(
         Speaker__imageUrl._correspondenceFactType,
         new Speaker__imageUrl.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker__imageUrl._correspondenceFactType }));
     community.AddQuery(
         Speaker__imageUrl._correspondenceFactType,
         Speaker__imageUrl.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Speaker__contact._correspondenceFactType,
         new Speaker__contact.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker__contact._correspondenceFactType }));
     community.AddQuery(
         Speaker__contact._correspondenceFactType,
         Speaker__contact.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Speaker__bio._correspondenceFactType,
         new Speaker__bio.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker__bio._correspondenceFactType }));
     community.AddQuery(
         Speaker__bio._correspondenceFactType,
         Speaker__bio.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceNotice._correspondenceFactType,
         new ConferenceNotice.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceNotice._correspondenceFactType }));
     community.AddType(
         Place._correspondenceFactType,
         new Place.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Place._correspondenceFactType }));
     community.AddQuery(
         Place._correspondenceFactType,
         Place.GetQueryCurrentSessionPlaces().QueryDefinition);
     community.AddType(
         Level._correspondenceFactType,
         new Level.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Level._correspondenceFactType }));
     community.AddType(
         Session._correspondenceFactType,
         new Session.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Session._correspondenceFactType }));
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryName().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryDescription().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryLevel().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryCurrentSessionPlaces().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryNotices().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryIsDeleted().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQuerySessionDeletes().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryIsScheduled().QueryDefinition);
     community.AddType(
         Session__name._correspondenceFactType,
         new Session__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Session__name._correspondenceFactType }));
     community.AddQuery(
         Session__name._correspondenceFactType,
         Session__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Session__description._correspondenceFactType,
         new Session__description.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Session__description._correspondenceFactType }));
     community.AddQuery(
         Session__description._correspondenceFactType,
         Session__description.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Session__level._correspondenceFactType,
         new Session__level.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Session__level._correspondenceFactType }));
     community.AddQuery(
         Session__level._correspondenceFactType,
         Session__level.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         SessionDelete._correspondenceFactType,
         new SessionDelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionDelete._correspondenceFactType }));
     community.AddQuery(
         SessionDelete._correspondenceFactType,
         SessionDelete.GetQueryIsUndeleted().QueryDefinition);
     community.AddType(
         SessionUndelete._correspondenceFactType,
         new SessionUndelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionUndelete._correspondenceFactType }));
     community.AddType(
         SessionNotice._correspondenceFactType,
         new SessionNotice.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionNotice._correspondenceFactType }));
     community.AddType(
         SessionPlace._correspondenceFactType,
         new SessionPlace.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionPlace._correspondenceFactType }));
     community.AddQuery(
         SessionPlace._correspondenceFactType,
         SessionPlace.GetQueryIsCurrent().QueryDefinition);
     community.AddQuery(
         SessionPlace._correspondenceFactType,
         SessionPlace.GetQueryIsDeleted().QueryDefinition);
     community.AddQuery(
         SessionPlace._correspondenceFactType,
         SessionPlace.GetQueryTimeIsDeleted().QueryDefinition);
     community.AddType(
         Schedule._correspondenceFactType,
         new Schedule.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Schedule._correspondenceFactType }));
     community.AddQuery(
         Schedule._correspondenceFactType,
         Schedule.GetQueryIsCurrent().QueryDefinition);
     community.AddQuery(
         Schedule._correspondenceFactType,
         Schedule.GetQuerySessionPlaceIsCurrent().QueryDefinition);
     community.AddQuery(
         Schedule._correspondenceFactType,
         Schedule.GetQueryIsDeleted().QueryDefinition);
     community.AddQuery(
         Schedule._correspondenceFactType,
         Schedule.GetQueryCompletedEvaluations().QueryDefinition);
     community.AddType(
         ScheduleRemove._correspondenceFactType,
         new ScheduleRemove.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ScheduleRemove._correspondenceFactType }));
     community.AddType(
         RatingQuestion._correspondenceFactType,
         new RatingQuestion.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { RatingQuestion._correspondenceFactType }));
     community.AddType(
         EssayQuestion._correspondenceFactType,
         new EssayQuestion.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { EssayQuestion._correspondenceFactType }));
     community.AddType(
         Survey._correspondenceFactType,
         new Survey.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Survey._correspondenceFactType }));
     community.AddType(
         SessionEvaluation._correspondenceFactType,
         new SessionEvaluation.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionEvaluation._correspondenceFactType }));
     community.AddQuery(
         SessionEvaluation._correspondenceFactType,
         SessionEvaluation.GetQueryRatingAnswers().QueryDefinition);
     community.AddQuery(
         SessionEvaluation._correspondenceFactType,
         SessionEvaluation.GetQueryEssayAnswers().QueryDefinition);
     community.AddQuery(
         SessionEvaluation._correspondenceFactType,
         SessionEvaluation.GetQueryIsCompleted().QueryDefinition);
     community.AddType(
         SessionEvaluationCompleted._correspondenceFactType,
         new SessionEvaluationCompleted.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionEvaluationCompleted._correspondenceFactType }));
     community.AddType(
         SessionEvaluationRating._correspondenceFactType,
         new SessionEvaluationRating.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionEvaluationRating._correspondenceFactType }));
     community.AddQuery(
         SessionEvaluationRating._correspondenceFactType,
         SessionEvaluationRating.GetQueryCurrentAnswers().QueryDefinition);
     community.AddType(
         SessionEvaluationRatingAnswer._correspondenceFactType,
         new SessionEvaluationRatingAnswer.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionEvaluationRatingAnswer._correspondenceFactType }));
     community.AddQuery(
         SessionEvaluationRatingAnswer._correspondenceFactType,
         SessionEvaluationRatingAnswer.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         SessionEvaluationEssay._correspondenceFactType,
         new SessionEvaluationEssay.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionEvaluationEssay._correspondenceFactType }));
     community.AddQuery(
         SessionEvaluationEssay._correspondenceFactType,
         SessionEvaluationEssay.GetQueryCurrentAnswers().QueryDefinition);
     community.AddType(
         SessionEvaluationEssayAnswer._correspondenceFactType,
         new SessionEvaluationEssayAnswer.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionEvaluationEssayAnswer._correspondenceFactType }));
     community.AddQuery(
         SessionEvaluationEssayAnswer._correspondenceFactType,
         SessionEvaluationEssayAnswer.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         DocumentSegment._correspondenceFactType,
         new DocumentSegment.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { DocumentSegment._correspondenceFactType }));
 }
예제 #5
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Individual._correspondenceFactType,
         new Individual.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Individual._correspondenceFactType }));
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryProfiles().QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryActiveAttendees().QueryDefinition);
     community.AddType(
         Profile._correspondenceFactType,
         new Profile.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Profile._correspondenceFactType }));
     community.AddType(
         IndividualProfile._correspondenceFactType,
         new IndividualProfile.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { IndividualProfile._correspondenceFactType }));
     community.AddType(
         Attendee._correspondenceFactType,
         new Attendee.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Attendee._correspondenceFactType }));
     community.AddQuery(
         Attendee._correspondenceFactType,
         Attendee.GetQueryInactives().QueryDefinition);
     community.AddQuery(
         Attendee._correspondenceFactType,
         Attendee.GetQueryIsActive().QueryDefinition);
     community.AddType(
         AttendeeInactive._correspondenceFactType,
         new AttendeeInactive.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { AttendeeInactive._correspondenceFactType }));
     community.AddQuery(
         AttendeeInactive._correspondenceFactType,
         AttendeeInactive.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         AttendeeActive._correspondenceFactType,
         new AttendeeActive.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { AttendeeActive._correspondenceFactType }));
     community.AddType(
         Catalog._correspondenceFactType,
         new Catalog.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Catalog._correspondenceFactType }));
     community.AddQuery(
         Catalog._correspondenceFactType,
         Catalog.GetQueryConferenceHeaders().QueryDefinition);
     community.AddType(
         ConferenceHeader._correspondenceFactType,
         new ConferenceHeader.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryName().QueryDefinition);
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryImageUrl().QueryDefinition);
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryStartDate().QueryDefinition);
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryEndDate().QueryDefinition);
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryAddress().QueryDefinition);
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryCity().QueryDefinition);
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryHomePageUrl().QueryDefinition);
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryDescription().QueryDefinition);
     community.AddQuery(
         ConferenceHeader._correspondenceFactType,
         ConferenceHeader.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeader__name._correspondenceFactType,
         new ConferenceHeader__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader__name._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader__name._correspondenceFactType,
         ConferenceHeader__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeader__imageUrl._correspondenceFactType,
         new ConferenceHeader__imageUrl.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader__imageUrl._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader__imageUrl._correspondenceFactType,
         ConferenceHeader__imageUrl.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeader__startDate._correspondenceFactType,
         new ConferenceHeader__startDate.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader__startDate._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader__startDate._correspondenceFactType,
         ConferenceHeader__startDate.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeader__endDate._correspondenceFactType,
         new ConferenceHeader__endDate.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader__endDate._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader__endDate._correspondenceFactType,
         ConferenceHeader__endDate.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeader__address._correspondenceFactType,
         new ConferenceHeader__address.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader__address._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader__address._correspondenceFactType,
         ConferenceHeader__address.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeader__city._correspondenceFactType,
         new ConferenceHeader__city.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader__city._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader__city._correspondenceFactType,
         ConferenceHeader__city.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeader__homePageUrl._correspondenceFactType,
         new ConferenceHeader__homePageUrl.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader__homePageUrl._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader__homePageUrl._correspondenceFactType,
         ConferenceHeader__homePageUrl.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeader__description._correspondenceFactType,
         new ConferenceHeader__description.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeader__description._correspondenceFactType }));
     community.AddQuery(
         ConferenceHeader__description._correspondenceFactType,
         ConferenceHeader__description.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ConferenceHeaderDelete._correspondenceFactType,
         new ConferenceHeaderDelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ConferenceHeaderDelete._correspondenceFactType }));
     community.AddType(
         Conference._correspondenceFactType,
         new Conference.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Conference._correspondenceFactType }));
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryConferenceHeaders().QueryDefinition);
     community.AddQuery(
         Conference._correspondenceFactType,
         Conference.GetQueryTimes().QueryDefinition);
     community.AddType(
         Speaker._correspondenceFactType,
         new Speaker.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker._correspondenceFactType }));
     community.AddQuery(
         Speaker._correspondenceFactType,
         Speaker.GetQueryName().QueryDefinition);
     community.AddQuery(
         Speaker._correspondenceFactType,
         Speaker.GetQueryImageUrl().QueryDefinition);
     community.AddQuery(
         Speaker._correspondenceFactType,
         Speaker.GetQueryContact().QueryDefinition);
     community.AddQuery(
         Speaker._correspondenceFactType,
         Speaker.GetQueryBio().QueryDefinition);
     community.AddType(
         Speaker__name._correspondenceFactType,
         new Speaker__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker__name._correspondenceFactType }));
     community.AddQuery(
         Speaker__name._correspondenceFactType,
         Speaker__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Speaker__imageUrl._correspondenceFactType,
         new Speaker__imageUrl.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker__imageUrl._correspondenceFactType }));
     community.AddQuery(
         Speaker__imageUrl._correspondenceFactType,
         Speaker__imageUrl.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Speaker__contact._correspondenceFactType,
         new Speaker__contact.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker__contact._correspondenceFactType }));
     community.AddQuery(
         Speaker__contact._correspondenceFactType,
         Speaker__contact.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Speaker__bio._correspondenceFactType,
         new Speaker__bio.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Speaker__bio._correspondenceFactType }));
     community.AddQuery(
         Speaker__bio._correspondenceFactType,
         Speaker__bio.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Session._correspondenceFactType,
         new Session.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Session._correspondenceFactType }));
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryTitle().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryDescription().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryIsCurrent().QueryDefinition);
     community.AddQuery(
         Session._correspondenceFactType,
         Session.GetQueryTracks().QueryDefinition);
     community.AddType(
         Session__title._correspondenceFactType,
         new Session__title.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Session__title._correspondenceFactType }));
     community.AddQuery(
         Session__title._correspondenceFactType,
         Session__title.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Session__description._correspondenceFactType,
         new Session__description.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Session__description._correspondenceFactType }));
     community.AddQuery(
         Session__description._correspondenceFactType,
         Session__description.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         SessionDelete._correspondenceFactType,
         new SessionDelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionDelete._correspondenceFactType }));
     community.AddType(
         Track._correspondenceFactType,
         new Track.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Track._correspondenceFactType }));
     community.AddQuery(
         Track._correspondenceFactType,
         Track.GetQueryName().QueryDefinition);
     community.AddType(
         Track__name._correspondenceFactType,
         new Track__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Track__name._correspondenceFactType }));
     community.AddQuery(
         Track__name._correspondenceFactType,
         Track__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         SessionTrack._correspondenceFactType,
         new SessionTrack.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionTrack._correspondenceFactType }));
     community.AddQuery(
         SessionTrack._correspondenceFactType,
         SessionTrack.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Time._correspondenceFactType,
         new Time.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Time._correspondenceFactType }));
     community.AddQuery(
         Time._correspondenceFactType,
         Time.GetQueryStartTime().QueryDefinition);
     community.AddQuery(
         Time._correspondenceFactType,
         Time.GetQuerySessionSlots().QueryDefinition);
     community.AddType(
         Time__startTime._correspondenceFactType,
         new Time__startTime.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Time__startTime._correspondenceFactType }));
     community.AddQuery(
         Time__startTime._correspondenceFactType,
         Time__startTime.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Room._correspondenceFactType,
         new Room.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Room._correspondenceFactType }));
     community.AddQuery(
         Room._correspondenceFactType,
         Room.GetQueryRoomNumber().QueryDefinition);
     community.AddType(
         Room__roomNumber._correspondenceFactType,
         new Room__roomNumber.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Room__roomNumber._correspondenceFactType }));
     community.AddQuery(
         Room__roomNumber._correspondenceFactType,
         Room__roomNumber.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Slot._correspondenceFactType,
         new Slot.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Slot._correspondenceFactType }));
     community.AddType(
         SessionSlot._correspondenceFactType,
         new SessionSlot.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { SessionSlot._correspondenceFactType }));
     community.AddQuery(
         SessionSlot._correspondenceFactType,
         SessionSlot.GetQueryIsCurrent().QueryDefinition);
     community.AddQuery(
         SessionSlot._correspondenceFactType,
         SessionSlot.GetQuerySessionExists().QueryDefinition);
     community.AddType(
         DocumentSegment._correspondenceFactType,
         new DocumentSegment.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { DocumentSegment._correspondenceFactType }));
 }
예제 #6
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Individual._correspondenceFactType,
         new Individual.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Individual._correspondenceFactType }));
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.QueryCompanies.QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.QueryGames.QueryDefinition);
     community.AddType(
         Domain._correspondenceFactType,
         new Domain.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Domain._correspondenceFactType }));
     community.AddQuery(
         Domain._correspondenceFactType,
         Domain.QueryCompanies.QueryDefinition);
     community.AddQuery(
         Domain._correspondenceFactType,
         Domain.QueryGames.QueryDefinition);
     community.AddType(
         Company._correspondenceFactType,
         new Company.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Company._correspondenceFactType }));
     community.AddQuery(
         Company._correspondenceFactType,
         Company.QueryName.QueryDefinition);
     community.AddQuery(
         Company._correspondenceFactType,
         Company.QueryGames.QueryDefinition);
     community.AddType(
         Company__name._correspondenceFactType,
         new Company__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Company__name._correspondenceFactType }));
     community.AddQuery(
         Company__name._correspondenceFactType,
         Company__name.QueryIsCurrent.QueryDefinition);
     community.AddType(
         Director._correspondenceFactType,
         new Director.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Director._correspondenceFactType }));
     community.AddType(
         Game._correspondenceFactType,
         new Game.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Game._correspondenceFactType }));
     community.AddQuery(
         Game._correspondenceFactType,
         Game.QueryName.QueryDefinition);
     community.AddQuery(
         Game._correspondenceFactType,
         Game.QueryRounds.QueryDefinition);
     community.AddType(
         Game__name._correspondenceFactType,
         new Game__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Game__name._correspondenceFactType }));
     community.AddQuery(
         Game__name._correspondenceFactType,
         Game__name.QueryIsCurrent.QueryDefinition);
     community.AddType(
         Round._correspondenceFactType,
         new Round.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Round._correspondenceFactType }));
     community.AddQuery(
         Round._correspondenceFactType,
         Round.QueryCandidates.QueryDefinition);
     community.AddQuery(
         Round._correspondenceFactType,
         Round.QueryTurns.QueryDefinition);
     community.AddType(
         Turn._correspondenceFactType,
         new Turn.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Turn._correspondenceFactType }));
     community.AddQuery(
         Turn._correspondenceFactType,
         Turn.QueryHires.QueryDefinition);
     community.AddType(
         Borrow._correspondenceFactType,
         new Borrow.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Borrow._correspondenceFactType }));
     community.AddType(
         Repay._correspondenceFactType,
         new Repay.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Repay._correspondenceFactType }));
     community.AddType(
         Candidate._correspondenceFactType,
         new Candidate.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Candidate._correspondenceFactType }));
     community.AddQuery(
         Candidate._correspondenceFactType,
         Candidate.QueryOffers.QueryDefinition);
     community.AddType(
         Offer._correspondenceFactType,
         new Offer.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Offer._correspondenceFactType }));
     community.AddQuery(
         Offer._correspondenceFactType,
         Offer.QueryHires.QueryDefinition);
     community.AddType(
         Hire._correspondenceFactType,
         new Hire.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Hire._correspondenceFactType }));
     community.AddType(
         Quit._correspondenceFactType,
         new Quit.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Quit._correspondenceFactType }));
     community.AddType(
         Payroll._correspondenceFactType,
         new Payroll.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Payroll._correspondenceFactType }));
     community.AddType(
         Resource._correspondenceFactType,
         new Resource.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Resource._correspondenceFactType }));
     community.AddType(
         Gig._correspondenceFactType,
         new Gig.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Gig._correspondenceFactType }));
     community.AddType(
         Bid._correspondenceFactType,
         new Bid.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Bid._correspondenceFactType }));
     community.AddType(
         Win._correspondenceFactType,
         new Win.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Win._correspondenceFactType }));
     community.AddType(
         Lose._correspondenceFactType,
         new Lose.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Lose._correspondenceFactType }));
     community.AddType(
         Revenue._correspondenceFactType,
         new Revenue.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Revenue._correspondenceFactType }));
 }
예제 #7
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Individual._correspondenceFactType,
         new Individual.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Individual._correspondenceFactType }));
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryProfiles().QueryDefinition);
     community.AddType(
         IndividualProfile._correspondenceFactType,
         new IndividualProfile.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { IndividualProfile._correspondenceFactType }));
     community.AddType(
         Profile._correspondenceFactType,
         new Profile.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Profile._correspondenceFactType }));
     community.AddQuery(
         Profile._correspondenceFactType,
         Profile.GetQueryName().QueryDefinition);
     community.AddQuery(
         Profile._correspondenceFactType,
         Profile.GetQueryActivities().QueryDefinition);
     community.AddType(
         Profile__name._correspondenceFactType,
         new Profile__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Profile__name._correspondenceFactType }));
     community.AddQuery(
         Profile__name._correspondenceFactType,
         Profile__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Company._correspondenceFactType,
         new Company.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Company._correspondenceFactType }));
     community.AddQuery(
         Company._correspondenceFactType,
         Company.GetQueryCategories().QueryDefinition);
     community.AddType(
         Quarter._correspondenceFactType,
         new Quarter.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Quarter._correspondenceFactType }));
     community.AddQuery(
         Quarter._correspondenceFactType,
         Quarter.GetQueryRewards().QueryDefinition);
     community.AddType(
         Category._correspondenceFactType,
         new Category.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Category._correspondenceFactType }));
     community.AddQuery(
         Category._correspondenceFactType,
         Category.GetQueryDescription().QueryDefinition);
     community.AddQuery(
         Category._correspondenceFactType,
         Category.GetQueryOrdinal().QueryDefinition);
     community.AddQuery(
         Category._correspondenceFactType,
         Category.GetQueryActivities().QueryDefinition);
     community.AddType(
         Category__description._correspondenceFactType,
         new Category__description.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Category__description._correspondenceFactType }));
     community.AddQuery(
         Category__description._correspondenceFactType,
         Category__description.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Category__ordinal._correspondenceFactType,
         new Category__ordinal.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Category__ordinal._correspondenceFactType }));
     community.AddQuery(
         Category__ordinal._correspondenceFactType,
         Category__ordinal.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ActivityDefinition._correspondenceFactType,
         new ActivityDefinition.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ActivityDefinition._correspondenceFactType }));
     community.AddQuery(
         ActivityDefinition._correspondenceFactType,
         ActivityDefinition.GetQueryDescription().QueryDefinition);
     community.AddQuery(
         ActivityDefinition._correspondenceFactType,
         ActivityDefinition.GetQueryQualifier().QueryDefinition);
     community.AddQuery(
         ActivityDefinition._correspondenceFactType,
         ActivityDefinition.GetQueryOrdinal().QueryDefinition);
     community.AddType(
         ActivityDefinition__description._correspondenceFactType,
         new ActivityDefinition__description.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ActivityDefinition__description._correspondenceFactType }));
     community.AddQuery(
         ActivityDefinition__description._correspondenceFactType,
         ActivityDefinition__description.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ActivityDefinition__qualifier._correspondenceFactType,
         new ActivityDefinition__qualifier.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ActivityDefinition__qualifier._correspondenceFactType }));
     community.AddQuery(
         ActivityDefinition__qualifier._correspondenceFactType,
         ActivityDefinition__qualifier.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ActivityDefinition__ordinal._correspondenceFactType,
         new ActivityDefinition__ordinal.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ActivityDefinition__ordinal._correspondenceFactType }));
     community.AddQuery(
         ActivityDefinition__ordinal._correspondenceFactType,
         ActivityDefinition__ordinal.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ActivityReward._correspondenceFactType,
         new ActivityReward.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ActivityReward._correspondenceFactType }));
     community.AddQuery(
         ActivityReward._correspondenceFactType,
         ActivityReward.GetQueryPoints().QueryDefinition);
     community.AddType(
         ActivityReward__points._correspondenceFactType,
         new ActivityReward__points.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ActivityReward__points._correspondenceFactType }));
     community.AddQuery(
         ActivityReward__points._correspondenceFactType,
         ActivityReward__points.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         ProfileQuarter._correspondenceFactType,
         new ProfileQuarter.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ProfileQuarter._correspondenceFactType }));
     community.AddType(
         Activity._correspondenceFactType,
         new Activity.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Activity._correspondenceFactType }));
     community.AddQuery(
         Activity._correspondenceFactType,
         Activity.GetQueryDescription().QueryDefinition);
     community.AddQuery(
         Activity._correspondenceFactType,
         Activity.GetQueryMultiplier().QueryDefinition);
     community.AddType(
         Activity__description._correspondenceFactType,
         new Activity__description.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Activity__description._correspondenceFactType }));
     community.AddQuery(
         Activity__description._correspondenceFactType,
         Activity__description.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Activity__multiplier._correspondenceFactType,
         new Activity__multiplier.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Activity__multiplier._correspondenceFactType }));
     community.AddQuery(
         Activity__multiplier._correspondenceFactType,
         Activity__multiplier.GetQueryIsCurrent().QueryDefinition);
 }
예제 #8
0
 public void RegisterAllFactTypes(Community community, IDictionary <Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Identity._correspondenceFactType,
         new Identity.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Identity._correspondenceFactType
     }));
     community.AddQuery(
         Identity._correspondenceFactType,
         Identity.QueryIsToastNotificationDisabled.QueryDefinition);
     community.AddQuery(
         Identity._correspondenceFactType,
         Identity.QuerySharedClouds.QueryDefinition);
     community.AddType(
         Cloud._correspondenceFactType,
         new Cloud.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Cloud._correspondenceFactType
     }));
     community.AddQuery(
         Cloud._correspondenceFactType,
         Cloud.QueryCentralThought.QueryDefinition);
     community.AddType(
         CloudCentralThought._correspondenceFactType,
         new CloudCentralThought.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         CloudCentralThought._correspondenceFactType
     }));
     community.AddQuery(
         CloudCentralThought._correspondenceFactType,
         CloudCentralThought.QueryIsCurrent.QueryDefinition);
     community.AddType(
         Share._correspondenceFactType,
         new Share.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Share._correspondenceFactType
     }));
     community.AddType(
         Thought._correspondenceFactType,
         new Thought.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Thought._correspondenceFactType
     }));
     community.AddQuery(
         Thought._correspondenceFactType,
         Thought.QueryText.QueryDefinition);
     community.AddQuery(
         Thought._correspondenceFactType,
         Thought.QueryNeighbors.QueryDefinition);
     community.AddQuery(
         Thought._correspondenceFactType,
         Thought.QueryLinks.QueryDefinition);
     community.AddType(
         ThoughtText._correspondenceFactType,
         new ThoughtText.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         ThoughtText._correspondenceFactType
     }));
     community.AddQuery(
         ThoughtText._correspondenceFactType,
         ThoughtText.QueryIsCurrent.QueryDefinition);
     community.AddType(
         Link._correspondenceFactType,
         new Link.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Link._correspondenceFactType
     }));
     community.AddType(
         DisableToastNotification._correspondenceFactType,
         new DisableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         DisableToastNotification._correspondenceFactType
     }));
     community.AddQuery(
         DisableToastNotification._correspondenceFactType,
         DisableToastNotification.QueryIsReenabled.QueryDefinition);
     community.AddType(
         EnableToastNotification._correspondenceFactType,
         new EnableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         EnableToastNotification._correspondenceFactType
     }));
 }
예제 #9
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Identity._correspondenceFactType,
         new Identity.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Identity._correspondenceFactType }));
     community.AddQuery(
         Identity._correspondenceFactType,
         Identity.QueryClaims.QueryDefinition);
     community.AddQuery(
         Identity._correspondenceFactType,
         Identity.QueryActiveLocalGames.QueryDefinition);
     community.AddQuery(
         Identity._correspondenceFactType,
         Identity.QueryIsToastNotificationDisabled.QueryDefinition);
     community.AddType(
         IdentityService._correspondenceFactType,
         new IdentityService.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { IdentityService._correspondenceFactType }));
     community.AddQuery(
         IdentityService._correspondenceFactType,
         IdentityService.QueryPendingClaims.QueryDefinition);
     community.AddType(
         Claim._correspondenceFactType,
         new Claim.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Claim._correspondenceFactType }));
     community.AddQuery(
         Claim._correspondenceFactType,
         Claim.QueryResponses.QueryDefinition);
     community.AddQuery(
         Claim._correspondenceFactType,
         Claim.QueryIsPending.QueryDefinition);
     community.AddType(
         ClaimResponse._correspondenceFactType,
         new ClaimResponse.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ClaimResponse._correspondenceFactType }));
     community.AddType(
         User._correspondenceFactType,
         new User.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { User._correspondenceFactType }));
     community.AddQuery(
         User._correspondenceFactType,
         User.QueryClaims.QueryDefinition);
     community.AddQuery(
         User._correspondenceFactType,
         User.QueryActivePlayers.QueryDefinition);
     community.AddQuery(
         User._correspondenceFactType,
         User.QueryFinishedPlayers.QueryDefinition);
     community.AddQuery(
         User._correspondenceFactType,
         User.QueryRelatedUsers.QueryDefinition);
     community.AddQuery(
         User._correspondenceFactType,
         User.QueryIsChatEnabled.QueryDefinition);
     community.AddQuery(
         User._correspondenceFactType,
         User.QueryGameRequests.QueryDefinition);
     community.AddQuery(
         User._correspondenceFactType,
         User.QueryPendingGameRequests.QueryDefinition);
     community.AddType(
         ChatEnable._correspondenceFactType,
         new ChatEnable.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ChatEnable._correspondenceFactType }));
     community.AddType(
         DisableToastNotification._correspondenceFactType,
         new DisableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { DisableToastNotification._correspondenceFactType }));
     community.AddQuery(
         DisableToastNotification._correspondenceFactType,
         DisableToastNotification.QueryIsReenabled.QueryDefinition);
     community.AddType(
         EnableToastNotification._correspondenceFactType,
         new EnableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { EnableToastNotification._correspondenceFactType }));
     community.AddType(
         Game._correspondenceFactType,
         new Game.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Game._correspondenceFactType }));
     community.AddQuery(
         Game._correspondenceFactType,
         Game.QueryPlayers.QueryDefinition);
     community.AddQuery(
         Game._correspondenceFactType,
         Game.QueryMessages.QueryDefinition);
     community.AddQuery(
         Game._correspondenceFactType,
         Game.QueryMoves.QueryDefinition);
     community.AddQuery(
         Game._correspondenceFactType,
         Game.QueryOutcomes.QueryDefinition);
     community.AddType(
         Player._correspondenceFactType,
         new Player.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Player._correspondenceFactType }));
     community.AddQuery(
         Player._correspondenceFactType,
         Player.QueryMoves.QueryDefinition);
     community.AddQuery(
         Player._correspondenceFactType,
         Player.QueryNewMessages.QueryDefinition);
     community.AddQuery(
         Player._correspondenceFactType,
         Player.QueryIsActive.QueryDefinition);
     community.AddQuery(
         Player._correspondenceFactType,
         Player.QueryIsNotActive.QueryDefinition);
     community.AddType(
         Message._correspondenceFactType,
         new Message.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Message._correspondenceFactType }));
     community.AddQuery(
         Message._correspondenceFactType,
         Message.QueryIsAcknowledged.QueryDefinition);
     community.AddType(
         Acknowledge._correspondenceFactType,
         new Acknowledge.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Acknowledge._correspondenceFactType }));
     community.AddType(
         Move._correspondenceFactType,
         new Move.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Move._correspondenceFactType }));
     community.AddType(
         Outcome._correspondenceFactType,
         new Outcome.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Outcome._correspondenceFactType }));
     community.AddType(
         OutcomeAcknowledge._correspondenceFactType,
         new OutcomeAcknowledge.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { OutcomeAcknowledge._correspondenceFactType }));
     community.AddType(
         LocalGame._correspondenceFactType,
         new LocalGame.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { LocalGame._correspondenceFactType }));
     community.AddQuery(
         LocalGame._correspondenceFactType,
         LocalGame.QueryPlayers.QueryDefinition);
     community.AddQuery(
         LocalGame._correspondenceFactType,
         LocalGame.QueryMoves.QueryDefinition);
     community.AddQuery(
         LocalGame._correspondenceFactType,
         LocalGame.QueryOutcomes.QueryDefinition);
     community.AddQuery(
         LocalGame._correspondenceFactType,
         LocalGame.QueryIsActive.QueryDefinition);
     community.AddType(
         LocalPlayer._correspondenceFactType,
         new LocalPlayer.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { LocalPlayer._correspondenceFactType }));
     community.AddType(
         LocalMove._correspondenceFactType,
         new LocalMove.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { LocalMove._correspondenceFactType }));
     community.AddType(
         LocalOutcome._correspondenceFactType,
         new LocalOutcome.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { LocalOutcome._correspondenceFactType }));
     community.AddType(
         LocalOutcomeAcknowledge._correspondenceFactType,
         new LocalOutcomeAcknowledge.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { LocalOutcomeAcknowledge._correspondenceFactType }));
     community.AddType(
         MatchmakingService._correspondenceFactType,
         new MatchmakingService.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { MatchmakingService._correspondenceFactType }));
     community.AddQuery(
         MatchmakingService._correspondenceFactType,
         MatchmakingService.QueryPendingGameRequests.QueryDefinition);
     community.AddType(
         GameRequest._correspondenceFactType,
         new GameRequest.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { GameRequest._correspondenceFactType }));
     community.AddQuery(
         GameRequest._correspondenceFactType,
         GameRequest.QueryIsCompleted.QueryDefinition);
     community.AddQuery(
         GameRequest._correspondenceFactType,
         GameRequest.QueryPlayer.QueryDefinition);
     community.AddType(
         GameRequestCompletion._correspondenceFactType,
         new GameRequestCompletion.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { GameRequestCompletion._correspondenceFactType }));
 }
예제 #10
0
 public void RegisterAllFactTypes(Community community, IDictionary <Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Individual._correspondenceFactType,
         new Individual.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Individual._correspondenceFactType
     }));
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryMessageBoards().QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryShares().QueryDefinition);
     community.AddQuery(
         Individual._correspondenceFactType,
         Individual.GetQueryIsToastNotificationEnabled().QueryDefinition);
     community.AddType(
         Share._correspondenceFactType,
         new Share.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Share._correspondenceFactType
     }));
     community.AddQuery(
         Share._correspondenceFactType,
         Share.GetQueryIsDeleted().QueryDefinition);
     community.AddUnpublisher(
         Share.GetRoleIndividual(),
         Condition.WhereIsEmpty(Share.GetQueryIsDeleted())
         );
     community.AddType(
         ShareDelete._correspondenceFactType,
         new ShareDelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         ShareDelete._correspondenceFactType
     }));
     community.AddType(
         MessageBoard._correspondenceFactType,
         new MessageBoard.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         MessageBoard._correspondenceFactType
     }));
     community.AddQuery(
         MessageBoard._correspondenceFactType,
         MessageBoard.GetQueryMessages().QueryDefinition);
     community.AddType(
         Domain._correspondenceFactType,
         new Domain.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Domain._correspondenceFactType
     }));
     community.AddType(
         Message._correspondenceFactType,
         new Message.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         Message._correspondenceFactType
     }));
     community.AddType(
         EnableToastNotification._correspondenceFactType,
         new EnableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         EnableToastNotification._correspondenceFactType
     }));
     community.AddQuery(
         EnableToastNotification._correspondenceFactType,
         EnableToastNotification.GetQueryIsDisabled().QueryDefinition);
     community.AddType(
         DisableToastNotification._correspondenceFactType,
         new DisableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List <CorrespondenceFactType> {
         DisableToastNotification._correspondenceFactType
     }));
 }
예제 #11
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Identity._correspondenceFactType,
         new Identity.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Identity._correspondenceFactType }));
     community.AddQuery(
         Identity._correspondenceFactType,
         Identity.GetQueryActiveShares().QueryDefinition);
     community.AddType(
         Share._correspondenceFactType,
         new Share.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Share._correspondenceFactType }));
     community.AddQuery(
         Share._correspondenceFactType,
         Share.GetQueryIsActive().QueryDefinition);
     community.AddType(
         ShareRevoke._correspondenceFactType,
         new ShareRevoke.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { ShareRevoke._correspondenceFactType }));
     community.AddType(
         Company._correspondenceFactType,
         new Company.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Company._correspondenceFactType }));
     community.AddQuery(
         Company._correspondenceFactType,
         Company.GetQueryName().QueryDefinition);
     community.AddQuery(
         Company._correspondenceFactType,
         Company.GetQueryAccounts().QueryDefinition);
     community.AddType(
         Company__name._correspondenceFactType,
         new Company__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Company__name._correspondenceFactType }));
     community.AddQuery(
         Company__name._correspondenceFactType,
         Company__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Year._correspondenceFactType,
         new Year.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Year._correspondenceFactType }));
     community.AddType(
         Account._correspondenceFactType,
         new Account.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Account._correspondenceFactType }));
     community.AddQuery(
         Account._correspondenceFactType,
         Account.GetQueryName().QueryDefinition);
     community.AddQuery(
         Account._correspondenceFactType,
         Account.GetQueryIsDeleted().QueryDefinition);
     community.AddType(
         Account__name._correspondenceFactType,
         new Account__name.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Account__name._correspondenceFactType }));
     community.AddQuery(
         Account__name._correspondenceFactType,
         Account__name.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         AccountDelete._correspondenceFactType,
         new AccountDelete.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { AccountDelete._correspondenceFactType }));
     community.AddType(
         Book._correspondenceFactType,
         new Book.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Book._correspondenceFactType }));
     community.AddQuery(
         Book._correspondenceFactType,
         Book.GetQueryCredits().QueryDefinition);
     community.AddQuery(
         Book._correspondenceFactType,
         Book.GetQueryDebits().QueryDefinition);
     community.AddType(
         Entry._correspondenceFactType,
         new Entry.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Entry._correspondenceFactType }));
     community.AddQuery(
         Entry._correspondenceFactType,
         Entry.GetQueryId().QueryDefinition);
     community.AddQuery(
         Entry._correspondenceFactType,
         Entry.GetQueryDescription().QueryDefinition);
     community.AddQuery(
         Entry._correspondenceFactType,
         Entry.GetQueryIsVoided().QueryDefinition);
     community.AddType(
         Entry__id._correspondenceFactType,
         new Entry__id.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Entry__id._correspondenceFactType }));
     community.AddQuery(
         Entry__id._correspondenceFactType,
         Entry__id.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         Entry__description._correspondenceFactType,
         new Entry__description.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Entry__description._correspondenceFactType }));
     community.AddQuery(
         Entry__description._correspondenceFactType,
         Entry__description.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         EntryVoid._correspondenceFactType,
         new EntryVoid.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { EntryVoid._correspondenceFactType }));
 }
		public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
		{
			community.AddType(
				Identity._correspondenceFactType,
				new Identity.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { Identity._correspondenceFactType }));
			community.AddQuery(
				Identity._correspondenceFactType,
				Identity.QueryIsToastNotificationDisabled.QueryDefinition);
			community.AddQuery(
				Identity._correspondenceFactType,
				Identity.QuerySharedClouds.QueryDefinition);
			community.AddType(
				Cloud._correspondenceFactType,
				new Cloud.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { Cloud._correspondenceFactType }));
			community.AddQuery(
				Cloud._correspondenceFactType,
				Cloud.QueryCentralThought.QueryDefinition);
			community.AddType(
				CloudCentralThought._correspondenceFactType,
				new CloudCentralThought.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { CloudCentralThought._correspondenceFactType }));
			community.AddQuery(
				CloudCentralThought._correspondenceFactType,
				CloudCentralThought.QueryIsCurrent.QueryDefinition);
			community.AddType(
				Share._correspondenceFactType,
				new Share.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { Share._correspondenceFactType }));
			community.AddType(
				Thought._correspondenceFactType,
				new Thought.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { Thought._correspondenceFactType }));
			community.AddQuery(
				Thought._correspondenceFactType,
				Thought.QueryText.QueryDefinition);
			community.AddQuery(
				Thought._correspondenceFactType,
				Thought.QueryNeighbors.QueryDefinition);
			community.AddQuery(
				Thought._correspondenceFactType,
				Thought.QueryLinks.QueryDefinition);
			community.AddType(
				ThoughtText._correspondenceFactType,
				new ThoughtText.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { ThoughtText._correspondenceFactType }));
			community.AddQuery(
				ThoughtText._correspondenceFactType,
				ThoughtText.QueryIsCurrent.QueryDefinition);
			community.AddType(
				Link._correspondenceFactType,
				new Link.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { Link._correspondenceFactType }));
			community.AddType(
				DisableToastNotification._correspondenceFactType,
				new DisableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { DisableToastNotification._correspondenceFactType }));
			community.AddQuery(
				DisableToastNotification._correspondenceFactType,
				DisableToastNotification.QueryIsReenabled.QueryDefinition);
			community.AddType(
				EnableToastNotification._correspondenceFactType,
				new EnableToastNotification.CorrespondenceFactFactory(fieldSerializerByType),
				new FactMetadata(new List<CorrespondenceFactType> { EnableToastNotification._correspondenceFactType }));
		}
예제 #13
0
 public void RegisterAllFactTypes(Community community, IDictionary<Type, IFieldSerializer> fieldSerializerByType)
 {
     community.AddType(
         Company._correspondenceFactType,
         new Company.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { Company._correspondenceFactType }));
     community.AddQuery(
         Company._correspondenceFactType,
         Company.GetQueryVideoSwitches().QueryDefinition);
     community.AddType(
         VideoSwitch._correspondenceFactType,
         new VideoSwitch.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { VideoSwitch._correspondenceFactType }));
     community.AddQuery(
         VideoSwitch._correspondenceFactType,
         VideoSwitch.GetQuerySelection().QueryDefinition);
     community.AddQuery(
         VideoSwitch._correspondenceFactType,
         VideoSwitch.GetQueryRequests().QueryDefinition);
     community.AddType(
         VideoSwitch__selection._correspondenceFactType,
         new VideoSwitch__selection.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { VideoSwitch__selection._correspondenceFactType }));
     community.AddQuery(
         VideoSwitch__selection._correspondenceFactType,
         VideoSwitch__selection.GetQueryIsCurrent().QueryDefinition);
     community.AddType(
         RequestRoute._correspondenceFactType,
         new RequestRoute.CorrespondenceFactFactory(fieldSerializerByType),
         new FactMetadata(new List<CorrespondenceFactType> { RequestRoute._correspondenceFactType }));
     community.AddQuery(
         RequestRoute._correspondenceFactType,
         RequestRoute.GetQueryIsCurrent().QueryDefinition);
     community.AddQuery(
         RequestRoute._correspondenceFactType,
         RequestRoute.GetQueryFollowing().QueryDefinition);
 }