Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Json Serialising Media on ITweet breaks with Video #65

Closed
TomSteer opened this issue Oct 19, 2015 · 4 comments
Closed

Json Serialising Media on ITweet breaks with Video #65

TomSteer opened this issue Oct 19, 2015 · 4 comments
Assignees

Comments

@TomSteer
Copy link

Hello,

I'm currently serialising the Media property on the ITweet Interface to json, which works fine until the tweet contains a video. When a video is present it throws the following: The method or operation is not implemented. in this code block: Tweetinvi.Logic.JsonConverters.JsonPropertyConverterRepository.WriteJson. From what I can tell this is because of IVideoEntityVariant uses the JsonPropertyConverterRepository to deserialise it but this also gets picked up by Newtonsoft.Json when serialising too and throws the exception because WriteJson is not implemented.

Is there anything I can do to get around this so I can serialise the Media property?

Thanks and awesome work on this project 👍

Tom

@linvi
Copy link
Owner

linvi commented Oct 27, 2015

Hi there,

Sorry for taking so long to reply. I am usually prompt but I have been overbooked this week.
As per your question, this is a known "issue". Serialization of Tweetinvi objects will be available as part of version 1.1. So it means it will be available in around 9 months.

In the meantime, please create your custom proxy/adapter object and add the properties you need to deserialize manually.

This feature is sometimes asked but the goal of version 1.0 is to have a library covering 100% of the Twitter API. After doing this I will add some additional features. Serialization will be the first one.

Cheers,
Linvi

@linvi linvi self-assigned this Oct 27, 2015
@linvi linvi added this to the Version 1.1 milestone Oct 27, 2015
@linvi
Copy link
Owner

linvi commented Jan 6, 2016

Link : #75

@linvi
Copy link
Owner

linvi commented Apr 27, 2016

For the sake of mentioning it, the json object serialization has been improved. Please check it out.

@linvi linvi modified the milestones: Version 0.9.13.x, Version 1.1 May 22, 2016
@linvi
Copy link
Owner

linvi commented May 26, 2016

Fixed in version 0.9.13.0. Check the serialization wiki for more information.

https://github.com/linvi/tweetinvi/wiki/Serialization-and-Deserialization

Sorry for the long delay.

@linvi linvi closed this as completed May 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants