MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / GetDelta

Method GetDelta

Reputation/ReputationHelper.cs:7–14  ·  view source on GitHub ↗
(ReputationReason reason)

Source from the content-addressed store, hash-verified

5public static class ReputationHelper
6{
7 private static int GetDelta(ReputationReason reason) => reason switch
8 {
9 ReputationReason.QuestionUpvoted => 5,
10 ReputationReason.AnswerUpvoted => 5,
11 ReputationReason.QuestionDownvoted => -2,
12 ReputationReason.AnswerDownvoted => -2,
13 _ => 15
14 };
15
16 public static UserReputationChanged MakeEvent(
17 string userId,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected