mirror of
https://github.com/Xevion/vastly.git
synced 2025-12-09 18:08:59 -06:00
redis, latency processor work, minor main.go cleanup, remove Greet, ScoredOffer.Latency
This commit is contained in:
@@ -198,6 +198,7 @@ export namespace api {
|
||||
Offer: Offer;
|
||||
Score: number;
|
||||
Reasons: ScoreReason[];
|
||||
Latency?: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new ScoredOffer(source);
|
||||
@@ -208,6 +209,7 @@ export namespace api {
|
||||
this.Offer = this.convertValues(source["Offer"], Offer);
|
||||
this.Score = source["Score"];
|
||||
this.Reasons = this.convertValues(source["Reasons"], ScoreReason);
|
||||
this.Latency = source["Latency"];
|
||||
}
|
||||
|
||||
convertValues(a: any, classs: any, asMap: boolean = false): any {
|
||||
|
||||
Reference in New Issue
Block a user