Skip to content

Instantly share code, notes, and snippets.

View hkakutalua's full-sized avatar
🎯
Focusing

Henrick hkakutalua

🎯
Focusing
View GitHub Profile
final flutterPushNotification = FlutterPushNotification();
flutterPushNotification.setup(
onResume(Notification notification, Map<String, dynamic> data) async {
if (notification != null) {
print(notification.title);
print(notification.body);
}
message.forEach((key, value) {
print("Key: '$key' Value: '$value'");

Taksapp API Documentation

Sign-up

Sign-Up Request To Receive OTP

POST /api/v1/users/start-phone-sign-up

{
  "firstName": "Henrick",
@hkakutalua
hkakutalua / flutter_social_share.md
Created November 29, 2019 09:50
Flutter Social Share API
var flutterSocialShare = FlutterSocialShare();
await flutterSocialShare.shareLinkToFacebook("https://foo.bar.co.ao", { shareHashTag: "#fooBarExperience" });
await flutterSocialShare.composeTweet("FooBar is such an amazing experience.\n#fooBarExperience", { url: "https://nextbss.co.ao"});
FooBar > Privacy Policy
NextBSS built the FooBar app as a Free app. This SERVICE is provided by NextBSS at no cost and is intended for use as is.
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at FooBar unless otherwise defined in this Privacy Policy.
Information Collection and Use
{
"id": 1,
"first_name": "Henrick",
"last_name": "Kakutalua",
"birthday": "2020-09-23T00:00:00+00:01",
"bio": "Lorem ipsum dolor amet consectur",
"image_url": "https://image/profile_photo.jpg"
}
@hkakutalua
hkakutalua / Person.java
Created May 28, 2020 22:28
Person class
package com.example.partialupdates.domain;
import java.time.OffsetDateTime;
import java.util.Objects;
import java.util.Optional;
public class Person {
private final long id;
private String firstName;
private String lastName;
@hkakutalua
hkakutalua / PeopleRepository.java
Last active May 28, 2020 23:27
People Repository
package com.example.partialupdates.repositories;
import com.example.partialupdates.domain.Person;
import org.springframework.stereotype.Repository;
import java.time.OffsetDateTime;
import java.util.*;
import java.util.function.UnaryOperator;
@Repository
package com.example.partialupdates.controllers.dtos;
import java.time.OffsetDateTime;
public class PersonReadDto {
private final long id;
private final String firstName;
private final String lastName;
private final OffsetDateTime birthday;
private final String bio;
@hkakutalua
hkakutalua / PersonUpdateDto.java
Last active June 2, 2020 21:34
PersonUpdateDto
package com.example.partialupdates.controllers.dtos;
import java.time.OffsetDateTime;
public class PersonUpdateDto {
private String firstName;
private String lastName;
private OffsetDateTime birthday;
private String bio;
private String imageUrl;
@hkakutalua
hkakutalua / PeopleController.java
Last active June 2, 2020 21:06
PeopleController First Version
package com.example.partialupdates.controllers;
import com.example.partialupdates.controllers.dtos.PersonReadDto;
import com.example.partialupdates.controllers.dtos.PersonUpdateDto;
import com.example.partialupdates.domain.Person;
import com.example.partialupdates.repositories.PeopleRepository;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;