Skip to content

Commit

Permalink
Merge pull request #62 from re-kast/feature/issue_27
Browse files Browse the repository at this point in the history
🏗️ Introduce Kotlin Flow to the reposity, Add a network response handler
  • Loading branch information
dubdabasoduba authored Nov 3, 2024
2 parents 73762a7 + b531828 commit 24050d3
Show file tree
Hide file tree
Showing 97 changed files with 490 additions and 458 deletions.
2 changes: 1 addition & 1 deletion android/license-header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
1 change: 0 additions & 1 deletion android/momo-api-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration

Expand Down
2 changes: 1 addition & 1 deletion android/momo-api-sdk/license-header.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.rekast.sdk.model

import com.google.gson.annotations.SerializedName
import kotlinx.serialization.Serializable

/**
* Represents the callback host for the MTN MOMO API.
*
* This class is used to define the provider's callback host URL,
* which is necessary for handling responses from the MTN MOMO API.
*
* @property providerCallbackHost The callback host for the provider, represented as a nullable String.
*/
@Serializable
data class ProviderCallBackHost(
@SerializedName("providerCallbackHost") val providerCallbackHost: String? = null
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 - 2024, Benjamin Mwalimu
* Copyright 2023-2024, Benjamin Mwalimu
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 24050d3

Please sign in to comment.