GameCircle Amazon

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

GameCircle Amazon

Matteo Polito-2
Hi guys,

I've a problem. I've to use on my Android Application GameCircle by Amazon.

These are errors that I have:

Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.cs(23,23): Error CS0738: 
`Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not implement interface member 
`Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy()' 
and the best implementing candidate 
`Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.DeepCopy()' 
return type `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' 
does not match interface member return type `Java.Lang.Object' (CS0738) (GameCircle.MonoDroid)


Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.cs(23,23): Error CS0535: 
`Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not implement interface member 
`Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.Merge(Java.Lang.Object)' (CS0535) (GameCircle.MonoDroid)

Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)

I've created a project on GitHub and I have created posts on xamarin forum and on Stackoverflow but no help.

Here reference:

GitHub project

Xamarin forum post

Stackoverflow

Could you help me?

Thanks, very much.


_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Jonathan Pryor-3
On Nov 26, 2013, at 3:43 AM, Matteo Polito <[hidden email]> wrote:
> These are errors that I have:
>
> Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.cs(23,23): Error CS0738: `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not implement interface member `Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy()' and the best implementing candidate `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.DeepCopy()' return type `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not match interface member return type `Java.Lang.Object' (CS0738) (GameCircle.MonoDroid)

This is due to limitations in our code generator and Java covariant return types. The fix is to add a "managedReturn" attribute to Transforms\Metadata.xml. Please see the "Problem: Class does not implement interface method" section at:

        http://docs.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2
Hi, thanks for your answer.

I've solved first two problems using this:

<attr path="/api/package[@name='com.amazon.ags.client.whispersync']/class[@name='GameDataSingleMap']" name="visibility">protected</attr>

Now I have to solve this. How to do?

Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)

The method is: // This method is explicitly implemented as a member of an instantiated Com.Amazon.Ags.Client.Whispersync.Model.IMergeable 
global::Java.Lang.Object global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy () 
return global::Java.Interop.JavaObjectExtensions.JavaCast<Java.Lang.Object>(DeepCopy ()); 
}

Do I have to remove method?

Thanks.


2013/11/26 Jonathan Pryor <[hidden email]>
On Nov 26, 2013, at 3:43 AM, Matteo Polito <[hidden email]> wrote:
> These are errors that I have:
>
> Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.cs(23,23): Error CS0738: `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not implement interface member `Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy()' and the best implementing candidate `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap.DeepCopy()' return type `Com.Amazon.Ags.Client.Whispersync.GameDataSingleMap' does not match interface member return type `Java.Lang.Object' (CS0738) (GameCircle.MonoDroid)

This is due to limitations in our code generator and Java covariant return types. The fix is to add a "managedReturn" attribute to Transforms\Metadata.xml. Please see the "Problem: Class does not implement interface method" section at:

        http://docs.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Jonathan Pryor-3
On Nov 27, 2013, at 3:57 AM, Matteo Polito <[hidden email]> wrote:
> Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)
>
> The method is: // This method is explicitly implemented as a member of an instantiated Com.Amazon.Ags.Client.Whispersync.Model.IMergeable
> global::Java.Lang.Object global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy ()
> {
> return global::Java.Interop.JavaObjectExtensions.JavaCast<Java.Lang.Object>(DeepCopy ());
> }

Are you renaming or removing the DeepCopy() method via Transforms\Metadata.xml? Is NumberList an abstract type?

If NumberList is an abstract type, it may be missing the deepCopy() method that the Mergeable interface declares. If this is the case, you may need to add a DeepCopy() abstract method declaration in a partial class.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2
Hi, thanks again for you answer.
You're right, it's abstract.
public abstract partial class NumberList : global::Java.Lang.Object, global::Com.Amazon.Ags.Api.Whispersync.Model.ISyncableNumberList, global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable 

Now I don't know what to do! Have you an example to start?

Thanks.

Matteo. 


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:57 AM, Matteo Polito <[hidden email]> wrote:
> Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)
>
> The method is: // This method is explicitly implemented as a member of an instantiated Com.Amazon.Ags.Client.Whispersync.Model.IMergeable
> global::Java.Lang.Object global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy ()
> {
>       return global::Java.Interop.JavaObjectExtensions.JavaCast<Java.Lang.Object>(DeepCopy ());
> }

Are you renaming or removing the DeepCopy() method via Transforms\Metadata.xml? Is NumberList an abstract type?

If NumberList is an abstract type, it may be missing the deepCopy() method that the Mergeable interface declares. If this is the case, you may need to add a DeepCopy() abstract method declaration in a partial class.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2
I've created a new class "NumberList" in addition directory, It's partial.
using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return this;
        }
    }
}

But is this right?

Thanks


2013/11/27 Matteo Polito <[hidden email]>
Hi, thanks again for you answer.
You're right, it's abstract.
public abstract partial class NumberList : global::Java.Lang.Object, global::Com.Amazon.Ags.Api.Whispersync.Model.ISyncableNumberList, global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable 

Now I don't know what to do! Have you an example to start?

Thanks.

Matteo. 


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:57 AM, Matteo Polito <[hidden email]> wrote:
> Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)
>
> The method is: // This method is explicitly implemented as a member of an instantiated Com.Amazon.Ags.Client.Whispersync.Model.IMergeable
> global::Java.Lang.Object global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy ()
> {
>       return global::Java.Interop.JavaObjectExtensions.JavaCast<Java.Lang.Object>(DeepCopy ());
> }

Are you renaming or removing the DeepCopy() method via Transforms\Metadata.xml? Is NumberList an abstract type?

If NumberList is an abstract type, it may be missing the deepCopy() method that the Mergeable interface declares. If this is the case, you may need to add a DeepCopy() abstract method declaration in a partial class.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid



_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2
I've created a new class "NumberList" in addition directory, It's partial.
using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return this;
        }
    }
}

Now it compiles, but is this right?

Thanks


2013/11/27 Matteo Polito <[hidden email]>
I've created a new class "NumberList" in addition directory, It's partial.
using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return this;
        }
    }
}

But is this right?

Thanks


2013/11/27 Matteo Polito <[hidden email]>
Hi, thanks again for you answer.
You're right, it's abstract.
public abstract partial class NumberList : global::Java.Lang.Object, global::Com.Amazon.Ags.Api.Whispersync.Model.ISyncableNumberList, global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable 

Now I don't know what to do! Have you an example to start?

Thanks.

Matteo. 


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:57 AM, Matteo Polito <[hidden email]> wrote:
> Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)
>
> The method is: // This method is explicitly implemented as a member of an instantiated Com.Amazon.Ags.Client.Whispersync.Model.IMergeable
> global::Java.Lang.Object global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy ()
> {
>       return global::Java.Interop.JavaObjectExtensions.JavaCast<Java.Lang.Object>(DeepCopy ());
> }

Are you renaming or removing the DeepCopy() method via Transforms\Metadata.xml? Is NumberList an abstract type?

If NumberList is an abstract type, it may be missing the deepCopy() method that the Mergeable interface declares. If this is the case, you may need to add a DeepCopy() abstract method declaration in a partial class.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid




_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito
O, this should be right!!

using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return DeepCopy ();
        }
    }
}
  


2013/11/27 Matteo Polito <[hidden email]>
I've created a new class "NumberList" in addition directory, It's partial.
using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return this;
        }
    }
}

Now it compiles, but is this right?

Thanks


2013/11/27 Matteo Polito <[hidden email]>
I've created a new class "NumberList" in addition directory, It's partial.
using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return this;
        }
    }
}

But is this right?

Thanks


2013/11/27 Matteo Polito <[hidden email]>
Hi, thanks again for you answer.
You're right, it's abstract.
public abstract partial class NumberList : global::Java.Lang.Object, global::Com.Amazon.Ags.Api.Whispersync.Model.ISyncableNumberList, global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable 

Now I don't know what to do! Have you an example to start?

Thanks.

Matteo. 


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:57 AM, Matteo Polito <[hidden email]> wrote:
> Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)
>
> The method is: // This method is explicitly implemented as a member of an instantiated Com.Amazon.Ags.Client.Whispersync.Model.IMergeable
> global::Java.Lang.Object global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy ()
> {
>       return global::Java.Interop.JavaObjectExtensions.JavaCast<Java.Lang.Object>(DeepCopy ());
> }

Are you renaming or removing the DeepCopy() method via Transforms\Metadata.xml? Is NumberList an abstract type?

If NumberList is an abstract type, it may be missing the deepCopy() method that the Mergeable interface declares. If this is the case, you may need to add a DeepCopy() abstract method declaration in a partial class.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid





_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2
Ok, this should be right!!

using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return DeepCopy ();
        }
    }
}


2013/11/27 Matteo Polito <[hidden email]>
O, this should be right!!

using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return DeepCopy ();
        }
    }
}
  


2013/11/27 Matteo Polito <[hidden email]>
I've created a new class "NumberList" in addition directory, It's partial.
using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return this;
        }
    }
}

Now it compiles, but is this right?

Thanks


2013/11/27 Matteo Polito <[hidden email]>
I've created a new class "NumberList" in addition directory, It's partial.
using System;

namespace Com.Amazon.Ags.Client.Whispersync.Model
{
    public partial class NumberList
    {
        public Java.Lang.Object DeepCopy(){
            return this;
        }
    }
}

But is this right?

Thanks


2013/11/27 Matteo Polito <[hidden email]>
Hi, thanks again for you answer.
You're right, it's abstract.
public abstract partial class NumberList : global::Java.Lang.Object, global::Com.Amazon.Ags.Api.Whispersync.Model.ISyncableNumberList, global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable 

Now I don't know what to do! Have you an example to start?

Thanks.

Matteo. 


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:57 AM, Matteo Polito <[hidden email]> wrote:
> Com.Amazon.Ags.Client.Whispersync.Model.NumberList.cs(80,80): Error CS0103: The name `DeepCopy' does not exist in the current context (CS0103) (GameCircle.MonoDroid)
>
> The method is: // This method is explicitly implemented as a member of an instantiated Com.Amazon.Ags.Client.Whispersync.Model.IMergeable
> global::Java.Lang.Object global::Com.Amazon.Ags.Client.Whispersync.Model.IMergeable.DeepCopy ()
> {
>       return global::Java.Interop.JavaObjectExtensions.JavaCast<Java.Lang.Object>(DeepCopy ());
> }

Are you renaming or removing the DeepCopy() method via Transforms\Metadata.xml? Is NumberList an abstract type?

If NumberList is an abstract type, it may be missing the deepCopy() method that the Mergeable interface declares. If this is the case, you may need to add a DeepCopy() abstract method declaration in a partial class.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid






_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Jonathan Pryor-3
In reply to this post by Matteo Polito
On Nov 27, 2013, at 3:25 PM, Matteo Polito <[hidden email]> wrote:
> O, this should be right!!

Nope! It'll result in infinite recursion and stack overflow.

You want:

        public abstract Java.Lang.Object DeepCopy();

You'll also need to double-check that the generated NumberList type has a GetDeepCopyHandler() method (or something similar). If it doesn't, things get more complicated.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2
Hi,

I've seen that classes that implemts NumberList has GetDeppCopyHandler, so it should work. Is it right?

I've binded other amazon jar:

- AmazonInsights-android-sdk-2.0.24.jar
- login-with-amazon-sdk.jar
- gamecirclesdk.jar



        [Register ("deepCopy", "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;", "GetDeepCopyHandler")]
        public virtual global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList DeepCopy ()
        {
            if (id_deepCopy == IntPtr.Zero)
                id_deepCopy = JNIEnv.GetMethodID (class_ref, "deepCopy", "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;");

            if (GetType () == ThresholdType)
                return global::Java.Lang.Object.GetObject<global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallObjectMethod  (Handle, id_deepCopy), JniHandleOwnership.TransferLocalRef);
            else
                return global::Java.Lang.Object.GetObject<global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallNonvirtualObjectMethod  (Handle, ThresholdClass, id_deepCopy), JniHandleOwnership.TransferLocalRef);
        }
 -


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:25 PM, Matteo Polito <[hidden email]> wrote:
> O, this should be right!!

Nope! It'll result in infinite recursion and stack overflow.

You want:

        public abstract Java.Lang.Object DeepCopy();

You'll also need to double-check that the generated NumberList type has a GetDeepCopyHandler() method (or something similar). If it doesn't, things get more complicated.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2
Hi, I have a question:

If jar binding don't have a public class what have I to do?
I know that there this class "AmazonGamesClient" in jar in "com.amazon.ags.api" but in the generated binding there isn't. What to do?

Thanks.


2013/11/27 Matteo Polito <[hidden email]>
Hi,

I've seen that classes that implemts NumberList has GetDeppCopyHandler, so it should work. Is it right?

I've binded other amazon jar:

- AmazonInsights-android-sdk-2.0.24.jar
- login-with-amazon-sdk.jar
- gamecirclesdk.jar



        [Register ("deepCopy", "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;", "GetDeepCopyHandler")]
        public virtual global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList DeepCopy ()
        {
            if (id_deepCopy == IntPtr.Zero)
                id_deepCopy = JNIEnv.GetMethodID (class_ref, "deepCopy", "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;");

            if (GetType () == ThresholdType)
                return global::Java.Lang.Object.GetObject<global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallObjectMethod  (Handle, id_deepCopy), JniHandleOwnership.TransferLocalRef);
            else
                return global::Java.Lang.Object.GetObject<global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallNonvirtualObjectMethod  (Handle, ThresholdClass, id_deepCopy), JniHandleOwnership.TransferLocalRef);
        }
 -


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:25 PM, Matteo Polito <[hidden email]> wrote:
> O, this should be right!!

Nope! It'll result in infinite recursion and stack overflow.

You want:

        public abstract Java.Lang.Object DeepCopy();

You'll also need to double-check that the generated NumberList type has a GetDeepCopyHandler() method (or something similar). If it doesn't, things get more complicated.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid



_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2
Ok, solved. I missed reference Jar.

Thanks.


2013/11/28 Matteo Polito <[hidden email]>
Hi, I have a question:

If jar binding don't have a public class what have I to do?
I know that there this class "AmazonGamesClient" in jar in "com.amazon.ags.api" but in the generated binding there isn't. What to do?

Thanks.


2013/11/27 Matteo Polito <[hidden email]>
Hi,

I've seen that classes that implemts NumberList has GetDeppCopyHandler, so it should work. Is it right?

I've binded other amazon jar:

- AmazonInsights-android-sdk-2.0.24.jar
- login-with-amazon-sdk.jar
- gamecirclesdk.jar



        [Register ("deepCopy", "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;", "GetDeepCopyHandler")]
        public virtual global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList DeepCopy ()
        {
            if (id_deepCopy == IntPtr.Zero)
                id_deepCopy = JNIEnv.GetMethodID (class_ref, "deepCopy", "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;");

            if (GetType () == ThresholdType)
                return global::Java.Lang.Object.GetObject<global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallObjectMethod  (Handle, id_deepCopy), JniHandleOwnership.TransferLocalRef);
            else
                return global::Java.Lang.Object.GetObject<global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallNonvirtualObjectMethod  (Handle, ThresholdClass, id_deepCopy), JniHandleOwnership.TransferLocalRef);
        }
 -


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:25 PM, Matteo Polito <[hidden email]> wrote:
> O, this should be right!!

Nope! It'll result in infinite recursion and stack overflow.

You want:

        public abstract Java.Lang.Object DeepCopy();

You'll also need to double-check that the generated NumberList type has a GetDeepCopyHandler() method (or something similar). If it doesn't, things get more complicated.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid




_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GameCircle Amazon

Matteo Polito-2

Hi Jonathan,

Now after becoming mad it compiles and works. I'll write a wiki to help others make it work.

Thanks for your help!

Bye.



2013/11/28 Matteo Polito <[hidden email]>
Ok, solved. I missed reference Jar.

Thanks.


2013/11/28 Matteo Polito <[hidden email]>
Hi, I have a question:

If jar binding don't have a public class what have I to do?
I know that there this class "AmazonGamesClient" in jar in "com.amazon.ags.api" but in the generated binding there isn't. What to do?

Thanks.


2013/11/27 Matteo Polito <[hidden email]>
Hi,

I've seen that classes that implemts NumberList has GetDeppCopyHandler, so it should work. Is it right?

I've binded other amazon jar:

- AmazonInsights-android-sdk-2.0.24.jar
- login-with-amazon-sdk.jar
- gamecirclesdk.jar



        [Register ("deepCopy", "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;", "GetDeepCopyHandler")]
        public virtual global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList DeepCopy ()
        {
            if (id_deepCopy == IntPtr.Zero)
                id_deepCopy = JNIEnv.GetMethodID (class_ref, "deepCopy", "()Lcom/amazon/ags/client/whispersync/model/HighNumberList;");

            if (GetType () == ThresholdType)
                return global::Java.Lang.Object.GetObject<global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallObjectMethod  (Handle, id_deepCopy), JniHandleOwnership.TransferLocalRef);
            else
                return global::Java.Lang.Object.GetObject<global::Com.Amazon.Ags.Client.Whispersync.Model.HighNumberList> (JNIEnv.CallNonvirtualObjectMethod  (Handle, ThresholdClass, id_deepCopy), JniHandleOwnership.TransferLocalRef);
        }
 -


2013/11/27 Jonathan Pryor <[hidden email]>
On Nov 27, 2013, at 3:25 PM, Matteo Polito <[hidden email]> wrote:
> O, this should be right!!

Nope! It'll result in infinite recursion and stack overflow.

You want:

        public abstract Java.Lang.Object DeepCopy();

You'll also need to double-check that the generated NumberList type has a GetDeepCopyHandler() method (or something similar). If it doesn't, things get more complicated.

 - Jon

_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid





_______________________________________________
Monodroid mailing list
[hidden email]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
Loading...