Skip to content
This repository was archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from L1ghtm4n/master
Browse files Browse the repository at this point in the history
Quick fix pour les apparts de la phase 3.
  • Loading branch information
scarpentier committed Sep 3, 2014
2 parents ea71756 + 78f1858 commit 8f516ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RezNetUsage.Core/UsageFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ public static class UsageFactory
/// <returns>Objet usage plein de data</returns>
public static Usage GetUsage(this Usage usage, int phase, int appart, int mois)
{
// Les numero d'appartement qui ont seulement 3 chiffres est sous le format 0111 et non 111. Who knows why.
var appartFormatte = phase == 3 ? appart.ToString("0000") : appart.ToString();

// Build query string
// http://ets-res2-772:[email protected]/services/temps/?mois=9&cmd=Visualiser
var query = string.Format("http://www2.cooptel.qc.ca/services/temps/?mois={0}&cmd=Visualiser", mois);
var user = string.Format("ets-res{0}-{1}", phase, appart);
var user = string.Format("ets-res{0}-{1}", phase, appartFormatte);
var pass = string.Format("ets{0}", appart);

string html;
Expand Down

0 comments on commit 8f516ec

Please sign in to comment.