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

Networking: Add UseCase Success/Failure for network calls #2

Merged
merged 16 commits into from
Jan 11, 2022

Conversation

RamziJabali
Copy link
Collaborator

@RamziJabali RamziJabali commented Jan 10, 2022

Summary

Networking: Add UseCase Success/Failure for network calls

Fix

Used Sealed classes with Generic types for Success and Failure case

Success case

success_case

Failure case

failed_network_request

@RamziJabali RamziJabali changed the title Jira/mob 11/create refrence app MOB-18 Networking: Add UseCase Success/Failure for network calls Jan 10, 2022
@seljabali seljabali changed the title MOB-18 Networking: Add UseCase Success/Failure for network calls Networking: Add UseCase Success/Failure for network calls Jan 10, 2022
@seljabali seljabali self-requested a review January 10, 2022 19:59
@seljabali
Copy link
Member

Couldn't connect to backend because we're using https://, whereas metaweather only supports http://:
Screen Shot 2022-01-10 at 13 33 09

@seljabali
Copy link
Member

kamp/BreedViewModel & kamp/Composables need to go.

@seljabali
Copy link
Member

I'm not sure how I feel about the metaweather package name. We shouldn't name a feature based on an api service we use. Let's perhaps name to landingpage?

Copy link
Member

@seljabali seljabali left a comment

Choose a reason for hiding this comment

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

See comments.

Copy link
Member

@seljabali seljabali left a comment

Choose a reason for hiding this comment

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

See comments

@seljabali
Copy link
Member

May you please move all colors into a Colors object.

@seljabali
Copy link
Member

May we please revert iOS changes, and have that be a part of another PR. Thanks!

@RamziJabali
Copy link
Collaborator Author

May we please revert iOS changes, and have that be a part of another PR. Thanks!

Sure, let me know if there are more iOS changes required.

.padding(start = Spacing.Horizontal.m)
.fillMaxWidth()
)
Divider(modifier = Modifier.padding(8.dp))
Copy link
Member

Choose a reason for hiding this comment

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

Modifier.padding(Spacing.Surrounding.m)

<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
Copy link
Member

Choose a reason for hiding this comment

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

This needs to be reverted.

</objects>
<point key="canvasLocation" x="137.68115942028987" y="79.6875"/>
</scene>
</scenes>
<resources>
<image name="heart" catalog="system" width="128" height="109"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
Copy link
Member

Choose a reason for hiding this comment

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

This one too.

@seljabali seljabali merged commit 8f72f5e into main Jan 11, 2022
@seljabali seljabali deleted the jira/MOB-11/create-refrence-app branch January 11, 2022 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants