| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it. What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Sorry, something went wrong.
|
I signed it! |
Sorry, something went wrong.
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks good. Please update the tests, and add an entry to the CHANGELOG file.
Sorry, something went wrong.
| @@ -0,0 +1,32 @@ | |||
| // Copyright 2018, Google Inc. All rights reserved. | |||
There was a problem hiding this comment.
2019
Sorry, something went wrong.
| [JsonProperty("link")] | ||
| public string Link { get; set; } | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Add newline at eof
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks @Odonno. Just a couple of updates needed to the validation logic, and rename the property to FcmOptions.
Sorry, something went wrong.
| /// </summary> | ||
| internal WebpushFcmOptions CopyAndValidate() | ||
| { | ||
| if (this.Link != null && !this.Link.StartsWith("https")) |
There was a problem hiding this comment.
Create the copy first and then run validation on that.
var copy = ...;
if (copy.Link != null && !copy.Link.StartsWuth("https://")
{
}
Sorry, something went wrong.
| /// </summary> | ||
| internal WebpushFcmOptions CopyAndValidate() | ||
| { | ||
| if (this.Link != null && !this.Link.StartsWith("https")) |
There was a problem hiding this comment.
Can we also check the well-formedness of the URL by running Uri.IsWellFormedUriString(copy.Link, UriKind.Absolute)?
Sorry, something went wrong.
| /// Gets or sets the Webpush options that will be included in the message. | ||
| /// </summary> | ||
| [JsonProperty("fcm_options")] | ||
| public WebpushFcmOptions Options { get; set; } |
There was a problem hiding this comment.
I missed this in my previous review. Lets rename this property to FcmOptions to be consistent with other languages (namely Node.js and Go).
Sorry, something went wrong.
|
@hiranya911 Thank you for your help on this. |
Sorry, something went wrong.
There was a problem hiding this comment.
Found a small bug in the new validation logic. I can merge once that's fixed.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM 👍
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.