private static void InitializeTweetinviObjectConverters()
        {
            var privacyModeConverter = new JsonPrivacyModeConverter();
            var coordinatesConverter = new JsonInterfaceToObjectConverter <ICoordinates, Coordinates>();
            var languageConverter    = new JsonLanguageConverter();

            JsonConverters.Add(typeof(PrivacyMode), privacyModeConverter);
            JsonConverters.Add(typeof(ICoordinates), coordinatesConverter);
            JsonConverters.Add(typeof(Language), languageConverter);
        }
        private static void InitializeTweetinviObjectConverters()
        {
            var privacyModeConverter             = new JsonPrivacyModeConverter();
            var coordinatesConverter             = new JsonInterfaceToObjectConverter <ICoordinates, CoordinatesDTO>();
            var languageConverter                = new JsonLanguageConverter();
            var allowContributorRequestConverter = new JsonAllowContributorRequestConverter();
            var allowDirectMessage               = new JsonAllowDirectMessagesConverter();

            JsonConverters.Add(typeof(PrivacyMode), privacyModeConverter);
            JsonConverters.Add(typeof(ICoordinates), coordinatesConverter);
            JsonConverters.Add(typeof(Language), languageConverter);
            JsonConverters.Add(typeof(AllowContributorRequestMode), allowContributorRequestConverter);
            JsonConverters.Add(typeof(AllowDirectMessagesFrom), allowDirectMessage);
        }
        private static void InitializeTweetinviObjectConverters()
        {
            var privacyModeConverter = new JsonPrivacyModeConverter();
            var coordinatesConverter = new JsonInterfaceToObjectConverter<ICoordinates, CoordinatesDTO>();
            var languageConverter = new JsonLanguageConverter();
            var allowContributorRequestConverter = new JsonAllowContributorRequestConverter();
            var allowDirectMessage = new JsonAllowDirectMessagesConverter();

            JsonConverters.Add(typeof(PrivacyMode), privacyModeConverter);
            JsonConverters.Add(typeof(ICoordinates), coordinatesConverter);
            JsonConverters.Add(typeof(Language), languageConverter);
            JsonConverters.Add(typeof(AllowContributorRequestMode), allowContributorRequestConverter);
            JsonConverters.Add(typeof(AllowDirectMessagesFrom), allowDirectMessage);
        }
示例#4
0
        private static void InitializeTweetinviObjectConverters()
        {
            var privacyModeConverter             = new JsonPrivacyModeConverter();
            var coordinatesConverter             = new JsonInterfaceToObjectConverter <ICoordinates, CoordinatesDTO>();
            var languageConverter                = new JsonLanguageConverter();
            var allowContributorRequestConverter = new JsonAllowContributorRequestConverter();
            var allowDirectMessagesConverter     = new JsonAllowDirectMessagesConverter();
            var quickReplyTypeConverter          = new JsonEnumStringConverter <QuickReplyType>();
            var eventTypeConverter               = new JsonEnumStringConverter <EventType>();
            var attachmentTypeConverter          = new JsonEnumStringConverter <AttachmentType>();

            JsonConverters.Add(typeof(PrivacyMode), privacyModeConverter);
            JsonConverters.Add(typeof(ICoordinates), coordinatesConverter);
            JsonConverters.Add(typeof(Language), languageConverter);
            JsonConverters.Add(typeof(AllowContributorRequestMode), allowContributorRequestConverter);
            JsonConverters.Add(typeof(AllowDirectMessagesFrom), allowDirectMessagesConverter);
            JsonConverters.Add(typeof(QuickReplyType), quickReplyTypeConverter);
            JsonConverters.Add(typeof(EventType), eventTypeConverter);
            JsonConverters.Add(typeof(AttachmentType), attachmentTypeConverter);
        }