-
Notifications
You must be signed in to change notification settings - Fork 25
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
Notification and user methods version 2 #16
base: master
Are you sure you want to change the base?
Conversation
userv2/user_contact.go
Outdated
type UserContact struct { | ||
ID string `json:"id"` | ||
To string `json:"to"` | ||
ContactMethod string `json:"contactMethod"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
given this value is from a set of fixed values - are there plans to make this a Constant/Enum?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I defined these fixed methods in the file:
notificationv2/constants.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. I was more meaning to use the Constants as the Type of the ContactMethod
field in the Struct, in place of String?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great. Ok, I will change it soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks @vlamug :)
ec49053
to
6e3a273
Compare
@tombuildsstuff hello, I added necessary constants. Please, check it. Thanks. |
Hi @vlamug , thanks for your contribution. I'll be looking into your pull request, sorry for the delay. I spotted some minor errors/missing elements and will inform you when I have time to do an in depth review. |
@mustafanacar hello, how about making code-review? thanks. |
No description provided.