Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Conversation

@recreationx
Copy link
Contributor

Make it so GetBundles returns something so it does not freeze the client when opening "Credits" tab in Shop

throw new NotImplementedException();
using (var bytes = new MemoryStream(data))
{
var channel = EnumProxy<ChannelType>.Deserialize(bytes);
Copy link
Owner

Choose a reason for hiding this comment

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

nit: Indent the stuff properly.

Copy link
Owner

@FICTURE7 FICTURE7 left a comment

Choose a reason for hiding this comment

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

There is a pattern going on between Base*WebService and *WebService through abstract methods, it would be best that this implementation be implemented using the same pattern.

}
using (var outBytes = new MemoryStream())
{
EnumProxy<ChannelType>.Serialize(outBytes, channel);
Copy link
Owner

Choose a reason for hiding this comment

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

The base class should not contain any hardcoded logic, instead rely on the abstract method's implementation.

Suggested change
EnumProxy<ChannelType>.Serialize(outBytes, channel);
List<BundleView> bundles = OnGetBundles(channel);
ListProxy<BundleView>.Serialize(outBytes, bundles, BundleView.Serialize)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

BundleView does not contain definition for Serialize

Copy link
Owner

Choose a reason for hiding this comment

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

Oops, apologies that should be BundleViewProxy.Serialize

Copy link
Owner

@FICTURE7 FICTURE7 left a comment

Choose a reason for hiding this comment

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

Looks good to me other than the hardcoded logic.


private readonly UberStrikeItemShopClientView _items;
private readonly WebServiceContext _ctx;
private readonly List<BundleView> _bundles;
Copy link
Owner

Choose a reason for hiding this comment

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

This is not initialized, should be an empty list

Suggested change
private readonly List<BundleView> _bundles;
_bundles = new List<BundleView>();

Copy link
Owner

Choose a reason for hiding this comment

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

Do that somewhere in the constructor.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants