Skip to content

Comments

[FEAT]: Upgrade to devel version#121

Open
Doominika wants to merge 16 commits intorefactor/move-stream-api-lowfrom
feat/upgrade-to-devel-version
Open

[FEAT]: Upgrade to devel version#121
Doominika wants to merge 16 commits intorefactor/move-stream-api-lowfrom
feat/upgrade-to-devel-version

Conversation

@Doominika
Copy link
Contributor

Description

Update java wrapper for streamApiLow to devel version from c++ endpoint.

Copy link
Member

@djenczewski djenczewski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code does not compile

import jdk.internal.util.ByteArray;

public class RecordingEncKey {
public ByteArray id;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Java we use byte[]

@@ -0,0 +1,13 @@
package com.simplito.java.privmx_endpoint.streams.model;

import jdk.internal.util.ByteArray;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why you import internal package?

@@ -30,6 +30,7 @@ public class StreamRoom {
public ContainerPolicy policy;
public Long statusCode;
public Long schemaVersion;
public boolean closed;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all Java models we use nullable reference types

if(streamTrackId != nullptr) result.streamTrackId = jobject2string(ctx, streamTrackId);

return result;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be parsed like selector types?

jobject stream_encryption_mode
) {
JniContextUtils ctx(env);
if (ctx.nullCheck(connection, "Connection")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add null check for stream_encryption_mode

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why callResultEndpointApi is commented

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you not pass stream_encryption_mode parameter to create method?

ctx.nullCheck(users, "Users list") ||
ctx.nullCheck(managers, "Managers list") ||
ctx.nullCheck(public_meta, "Public meta") ||
ctx.nullCheck(public_meta, "Public meta") ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this probably should be private meta

) {
JniContextUtils ctx(env);
jobject result;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add nullcheck for stream_room_id

…to feat/upgrade-to-devel-version

# Conflicts:
#	jni-wrappers/privmx-endpoint/includes/privmx/endpoint/wrapper/streams/parsers/model_native_initializers.h
#	jni-wrappers/privmx-endpoint/includes/privmx/endpoint/wrapper/streams/parsers/parser.h
#	jni-wrappers/privmx-endpoint/src/cpp/modules/StreamApiLow.cpp
#	jni-wrappers/privmx-endpoint/src/cpp/streams/parsers/model_native_initializers.cpp
#	jni-wrappers/privmx-endpoint/src/cpp/streams/parsers/parser.cpp
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/model/stream/RecordingEncKey.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/model/stream/StreamEncryptionMode.java
#	privmx-endpoint/src/main/java/com/simplito/java/privmx_endpoint/modules/stream/StreamApiLow.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants