https://github.com/skn437/skn-kotlin-message
A Simple Message Library For Kotlin
https://github.com/skn437/skn-kotlin-message
gradle kotlin library maven message
Last synced: 3 months ago
JSON representation
A Simple Message Library For Kotlin
- Host: GitHub
- URL: https://github.com/skn437/skn-kotlin-message
- Owner: skn437
- License: apache-2.0
- Created: 2024-06-11T17:26:33.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-23T07:57:32.000Z (almost 2 years ago)
- Last Synced: 2025-06-04T01:38:46.561Z (about 1 year ago)
- Topics: gradle, kotlin, library, maven, message
- Language: Kotlin
- Homepage: https://javadoc.io/doc/best.skn/skn-kotlin-message/latest/index.html
- Size: 79.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SKN Kotlin Message Library

> Kotlin
[](https://central.sonatype.com/artifact/best.skn/skn-kotlin-message) [](https://javadoc.io/doc/best.skn/skn-kotlin-message/1.0.0) [](https://opensource.org/licenses/Apache-2.0)
## **_KDocs:_**
### Read the Kdoc: [utils.message](https://javadoc.io/doc/best.skn/skn-kotlin-message/latest/skn-kotlin-message/utils.message/index.html)
## **_Introduction:_**
### This is a simple Kotlin Library for notification message on console & server response
### I made this library so that I can use it in all of my java/kotlin projects without writing the same codes over and over again
### The main package of this library holds an object `Message` that has 6 methods for notification messages
## **_Details:_**
### **`utils.message` package:**
- It has 1 object called `Message`
- `Message` object has 6 methods:
- Error message on console
- Error message as server response
- Success message on console
- Success message as server response
- Info message on console
- Info message as server response
## **_Use Case:_**
- Java/Kotlin
- Spring Boot
## **_Requirements:_**
- 💀 Minimum JDK Version: `21`
- 💀 Minimum Kotlin Version: `1.9.4`
## **_Usage:_**
### For `Maven`, inside `dependencies` tag of `pom.xml`, copy the following
> ```xml
>
> best.skn
> skn-kotlin-message
> 1.0.0
>
> ```
### For `Gradle`, inside `dependencies` of `build.gradle.kts`, copy the following
> ```kotlin
> implementation("best.skn:skn-kotlin-message:1.0.0")
> ```
### Inside your Kotlin Code, import the package like this
> ```kotlin
> import best.skn.utils.message.Message
> ```
### You can use this library like this
> ```kotlin
> println(Message.errorServer("Failed to send mail!"))
>
> println(Message.successServer("Mail sent successfully!"))
>
> println(Message.infoServer("The current process can be stopped as its only purpose was to initiate the service"))
> ```
## **_Dedicated To:_**
- 👩🎨`Prodipta Das Logno` & 🧛♀️`Atoshi Sarker Prithula`: The two most special ladies of my life. My best wishes will always be with you two. May you two always be happy.
- 💯`My Parents`: The greatest treasures of my life ever.
## **_License:_**
Copyright (C) 2024 SKN Shukhan
Licensed under the Apache License, Version 2.0