Code Monkey home page Code Monkey logo

Comments (8)

tan-tan-kanarek avatar tan-tan-kanarek commented on August 16, 2024

The new lib is using executor, static services, completion callback, request builder, everything is different.

from developer-platform.

jessp01 avatar jessp01 commented on August 16, 2024

Indeed. A long time ago, I already sent Bobby code samples for all the new clients, including Java.
He should be able to update the codegen templates based on these.

from developer-platform.

jessp01 avatar jessp01 commented on August 16, 2024

Found 2 issues thus far.

filter.setOrderBy(MediaEntryOrderBy.CREATED_AT_ASC);

Should be:

filter.setOrderBy(MediaEntryOrderBy.CREATED_AT_DESC.getValue());

Since in src/main/java/com/kaltura/client/enums/MediaEntryOrderBy.java:

public enum MediaEntryOrderBy implements EnumAsString
...
...
MediaEntryOrderBy(String value)
int partnerId = "2141171";

Should be:

int partnerId = 2141171;

Since partnerId is of type int. Of course, 2141171 is just for illustration purposes. Happens to be the partner ID I was logged in with...

from developer-platform.

jessp01 avatar jessp01 commented on August 16, 2024

The partnerId issue is true to the other code generators as well. For languages that are not strictly typed/statically typed, the code will still work as is but it's still not right and should be fixed. For Java and C#, it will fail to compile.

from developer-platform.

rbren avatar rbren commented on August 16, 2024

Re: enums in Java, roger.

For the partnerId, I'm not seeing this issue - I always get ints. Is it possible that it's unique to the particular account you're logged in with (2141171)?

image

from developer-platform.

jessp01 avatar jessp01 commented on August 16, 2024

Hi @bobby-brennan, RE partnerId: It happened with multiple partners and in various contexts but looks like is has been resolved somewhere along the way because I no longer see it. So that only leaves us with the Java enums issue.

from developer-platform.

rbren avatar rbren commented on August 16, 2024

Fixed in 9a60721

from developer-platform.

jessp01 avatar jessp01 commented on August 16, 2024

Confirmed.

from developer-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.